Is it possible to open a Javascript file inside a Javascript file? Or
get data out of a other file/URL?
I tried to do a document.write '<SCRIPT language="javascript" src="include.js"></SCRIPT>'; but that didn't work.
Printable View
Is it possible to open a Javascript file inside a Javascript file? Or
get data out of a other file/URL?
I tried to do a document.write '<SCRIPT language="javascript" src="include.js"></SCRIPT>'; but that didn't work.
Not that I know of. You could probably do some fancy trick using iframes, but it is not guaranteed to work.
I managed indeed by using a hidden IFRAME.