User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » javascript/swf question Page [1]  
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

Golovko
All American
27023 Posts
user info
edit post

there is a script i've used before that pretty much makes IE6 and IE7 join the rest of the world with modern browser capabilities...aka transparent 24bit PNG's in IE6 etc among tons of other things. That may work for you.

2/20/2008 7:51:39 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

duro982
All American
3088 Posts
user info
edit post

thanks i'll give that a shot.

Any other suggestions?

2/20/2008 10:18:35 PM

 Message Boards » Tech Talk » javascript/swf question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.