I'd suggest to use getURL w/o javascript:

getURL("downloadCore.asp?file="+fileName, "downLoadFrame");

it
1)is shorter ;-) and
2)doesn't depend on JS enabled or not in the
user's browser.


> =========  Fri, 4 Nov 2005, Nathan Kirby wrote:
> 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.

-- 
Best regards,
 Gregory_GOusable                        
================================
http://GOusable.com
Flash components development.
Usability services.


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to