View Full Version : 'Would you like to download .js file?'


wwfc_barmy_army
06-28-2004, 04:05 PM
Hello,

I have a remote javascript file and i am linking to it using this HTML:

<iframe src="moviequotes.js" height="150" width="80%" frameborder="0" name="I1"></iframe>

But when i come to view the page its asks me to download moviequotes.js. Why is it asking me to download it and not just coming up?

Thanks,

Pete.

pb&j
06-28-2004, 04:31 PM
because you are calling as a source as if it were a web page.
in the iframe SRC value, it should be a normal html page being called.
you can then have the html page call the external javascript stuff.
trying to link to a js page directly (as you discovered) may produce a download procedure.

wwfc_barmy_army
06-28-2004, 07:20 PM
Ahh, i get it now.

Cheers!