Why the javascript?
Try calling the asp page directly, using the iframe id as the target window
getURL("downloadCore.asp?file="+fileName, "downLoadFrame");
I even doubt you need the iframe entirely, but not 100% sure though.
regards,
Muzak
----- Original Message -----
From: "Nathan Kirby" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, November 04, 2005 3:21 PM
Subject: [Flashcoders] odd action of getURL to run a javascript function.
> I'm wondering if anyone else has experienced this or may have suggestions to
> fix it. I've got an image viewing swf that is in a pop-up. Inside this movie
> I have a button that says download. The button works 100% of the time in
> FireFox but IE 6 it only works once and then beeps from then on. I'm using
> the getURL to call a javascript function in the asp page that holds the
> movie.
>
> Actionscript:
> getURL("javascript:doDownLoad("+fileName+")");
>
> Javascript:
> <script language="javascript1.3">
> function doDownLoad (args) {
> var downLoadFrameObj = document.getElementById('downLoadFrame');
> var thePath = "downloadCore.asp?file="+args;
> if (args != "") {
> alert(args);
> downLoadFrameObj.src = thePath;
> }
> }
> </script>
>
> After the object tag for the flash movie I have
> Html:
> <iframe id="downLoadFrame" name="downLoadFrame" style="visibility:hidden"
> src="downloadCore.asp?file="></iframe>
>
> Basically what happens is I run a asp page to give the user a download box,
> instead of poping another window and providing a link.
>
> Besides the security stuff - already added the webserver to trusted hosts
> and all that.
>
> I'm wondering why it works one time only in IE - if I close the window it
> will work just once the next time I open it. It seams like a javascript/IE
> thing sorry for the off topic - just looking for some suggestions.
>
> thanks
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders