|
I'm fairly sure that this (opening files on remote servers) is not allowed in JavaScript due to odd security reasons... You could load a JavaScript file from a remote server through HTML (e.g., <script src="http://example.com/js.js...). This is how Google's AJAX search API works- their JavaScript is hosted on their server, so they are able to use the AJAX on their own servers.
The only ways I know of to load files like this is through tags like <script> or <iframe> like you mentioned. You would have much more flexibility using a server-side language like PHP, or perhaps PHP in conjunction with AJAX.
__________________
The interlocking pieces of web development: usability, performance, accessibility, and standards.
|