By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

is this possible ?....

P: n/a
Mel
can i place tons of javascript on a client machine say C:/xxx/JS and have
the browser use them instead of getting it form my site ?

examples are more than welcomed

Yours,
Mel
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can, BUT if the user hoses that directory, your website becomes
useless, especially if it is very dependant on the JavaScript.

Cycloneous

Mel wrote:
can i place tons of javascript on a client machine say C:/xxx/JS and have
the browser use them instead of getting it form my site ?

examples are more than welcomed

Yours,
Mel

Jul 23 '05 #2

P: n/a
Ivo
> Mel wrote:
can i place tons of javascript on a client machine say C:/xxx/JS and have the browser use them instead of getting it form my site ?
Before you post to the newsgroup, did you try some experiments?
If so, what were your findings?
If not, how dare you? Seriously.
examples are more than welcomed

Well, it doesn't get any more exotic than this:
<script type="text/javascript" src="C:/xxx/JS/myscript.js">alert('File not
found!');</script>

"Cycloneous Echevarria", who wrote You can, BUT if the user hoses that directory, your website becomes
useless, especially if it is very dependant on the JavaScript.

please join the bottom-posters.

Something else to keep in mind is that the local drive and the website from
which the pages are coming, are different domains as far the browser is
concerned. So cross-domain security restrictions apply. This needn't be a
problem though.
HTH
Ivo
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.