Connecting Tech Pros Worldwide Forums | Help | Site Map

is this possible ?....

Mel
Guest
 
Posts: n/a
#1: Jul 23 '05
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



Cycloneous Echevarria
Guest
 
Posts: n/a
#2: Jul 23 '05

re: is this possible ?....


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:
[color=blue]
> 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
>
>[/color]
Ivo
Guest
 
Posts: n/a
#3: Jul 23 '05

re: is this possible ?....


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

Before you post to the newsgroup, did you try some experiments?
If so, what were your findings?
If not, how dare you? Seriously.
[color=blue][color=green]
> > examples are more than welcomed[/color][/color]

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[color=blue]
> You can, BUT if the user hoses that directory, your website becomes
> useless, especially if it is very dependant on the JavaScript.[/color]
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


Closed Thread


Similar JavaScript / Ajax / DHTML bytes