PDA

View Full Version : getURL to none HTML file loses JavaScript in IE


kritzia
07-11-2005, 11:56 PM
hi,

i have an html file that has a javascript function. for example:
function openASOrg(){
window.open('http://www.actionscript.org/','***************');
}

when i call this function from flash, it work fine. for example:
button1_mc.onRelease = function (){
getURL("javascript:openASOrg();");
}

but if i have another button on the same movie that lnks to an .exe file (or any other non html file). for example:
button1_mc.onRelease = function (){
getURL("http://somesever.com/myexe.exe");
}

IE links to the .exe file and opens up a download dialogue box and i can download the file but when i go back to the flash movie and click on button1_mc, it no longer called that javascript function above and i get a Object error. :confused:

the work around for this was to sniff for PC IE browsers then open the .exe file in a new window but with XP SP2, it does not link to the exe.

any help or insight would be appreciated. thanks!

bob_la_matraque
07-12-2005, 02:35 PM
I advice you to zip your exe file, so that there won't be any problems.

kritzia
07-13-2005, 06:19 PM
its the same with zip files and any file link that makes IE open a download dialogue box :(

ufitzi
07-19-2005, 11:18 PM
this may or may not be related, but I have a situation where my flash movie calls a javascript function to open a pop up window.
This works great.
Next, I placed my htm page w/ Flash movie in a frameset, again, works great (the pop up).
Now I've created a nother frameset on another site, which uses an absolute URL to pull in the same htm page w/ Flash movie and JS function.
The pop up DOES NOT work in IE, but IS working in Firefox.
Any ideas?
I get no JS errors in IE, and viewing the source shows me the page w/ JS function and all, it just won't call the function, period. (I used alert(), nothing happens, the objects I'm clicking in Flash just display their respective animations)

thanks!

bh