duro982 All American 3088 Posts user info edit post |
Before I go any further, I have searched google and have tried various script. I just don't have it in front of me right now to say what I have definitely tried.
Also, I don't know java very well. I'm alright with html and some css, meaning some I know and most of the rest I've wanted to use I have looked up and worked with it from there until I got it right. And that's how I've used javascript, just to a far lesser extent.
So....
I have a captivate file i'm publishing as .swf. I'd like for it to have a print button which prints the current frame (opens the print dialog) and ideally a button which closes the window.
window.print() and window.close() both work fine in IE6 when the flash file is either directly opened in IE and when it is embedded in a pop-up window from an html file. Neither work when opening a web page with the swf embedded.
In IE7, no matter how I view the file the buttons do not work. And the swf doesn't even show up in IE7 when it's embedded in the main page.
Normally I would be fine with the 1 way in which both buttons work. Unfortunately there are certain things out of my control. I have no control as far as which version of IE is used (it will definitely be IE 6 or 7 though). In regards to which version of IE is used that may change soon to definitely be ie7 but right now I have to assume it will be used in both. When opening a link of the swf file itself the user has to select IE as the program to open it with since a default isn't set. It will work, but they will need to go through the process of selecting the program.
So, is there something that will definitely work in IE7? Something which will work in IE& and IE6? or a way to have it try one way and if it fails go to the next. 2/20/2008 6:38:03 PM |
Stein All American 19842 Posts user info edit post |
Try: this.print();
Alternatively, if you can push IE7 into it's quirks mode which is more IE6 compatible, that might do the trick as well.
[Edited on February 20, 2008 at 7:59 PM. Reason : .] 2/20/2008 7:57:30 PM |