Re: [Flashcoders] odd action of getURL to run a javascript function
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: > > function doDownLoad (args) { > var downLoadFrameObj = document.getElementById('downLoadFrame'); > var thePath = "downloadCore.asp?file="+args; > if (args != "") { > alert(args); > downLoadFrameObj.src = thePath; > } > } > > > After the object tag for the flash movie I have > Html: > src="downloadCore.asp?file="> > > 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
Re: [Flashcoders] odd action of getURL to run a javascript function.
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: 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: > > function doDownLoad (args) { > var downLoadFrameObj = document.getElementById('downLoadFrame'); > var thePath = "downloadCore.asp?file="+args; > if (args != "") { > alert(args); > downLoadFrameObj.src = thePath; > } > } > > > After the object tag for the flash movie I have > Html: > src="downloadCore.asp?file="> > > 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders