Connecting Tech Pros Worldwide Help | Site Map

myscript.js

  #1  
Old July 23rd, 2005, 08:06 PM
Johny
Guest
 
Posts: n/a
I have copied my right click script into a text file and the put the
following code in its place on the site

<script src="right-click.js"></script>

It works ok but won't work on the pages in folders unless I copy the text
file to that folder.

How can I get the the above line of code to look in one place for the text
file?

J


  #2  
Old July 23rd, 2005, 08:06 PM
Evertjan.
Guest
 
Posts: n/a

re: myscript.js


Johny wrote on 09 apr 2005 in comp.lang.javascript:
[color=blue]
> I have copied my right click script into a text file and the put the
> following code in its place on the site
>
> <script src="right-click.js"></script>
>
> It works ok but won't work on the pages in folders unless I copy the
> text file to that folder.
>
> How can I get the the above line of code to look in one place for the
> text file?
>[/color]

Text files won't do, you will need a html files, where you put.

<script src="/myJsFiles/right-click.js"></script>


--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

  #3  
Old July 23rd, 2005, 08:06 PM
Johny
Guest
 
Posts: n/a

re: myscript.js


As soon as i pressed send on the previous message I thought of a way to do
it,

<script src="../../right-click.js"></script>

Cheers
J


"Johny" <not_today_my_good_friend@TheNet.com> wrote in message
news:d3898n$olo$1@news6.svr.pol.co.uk...[color=blue]
> I have copied my right click script into a text file and the put the
> following code in its place on the site
>
> <script src="right-click.js"></script>
>
> It works ok but won't work on the pages in folders unless I copy the text
> file to that folder.
>
> How can I get the the above line of code to look in one place for the text
> file?
>
> J
>
>[/color]


  #4  
Old July 23rd, 2005, 08:06 PM
Rebecca Seal
Guest
 
Posts: n/a

re: myscript.js


Or you can use the full URL.

"Johny" <not_today_my_good_friend@TheNet.com> wrote in message
news:d389k8$jlg$1@news7.svr.pol.co.uk...[color=blue]
> As soon as i pressed send on the previous message I thought of a way to do
> it,
>
> <script src="../../right-click.js"></script>
>
> Cheers
> J
>
>
> "Johny" <not_today_my_good_friend@TheNet.com> wrote in message
> news:d3898n$olo$1@news6.svr.pol.co.uk...[color=green]
>> I have copied my right click script into a text file and the put the
>> following code in its place on the site
>>
>> <script src="right-click.js"></script>
>>
>> It works ok but won't work on the pages in folders unless I copy the text
>> file to that folder.
>>
>> How can I get the the above line of code to look in one place for the
>> text
>> file?
>>
>> J
>>
>>[/color]
>
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
js file not loading in Firefox, Netscape Joe answers 0 April 4th, 2008 01:25 AM
how to use aspnet_client for js Jeff User answers 5 May 29th, 2007 07:55 AM
How can I let VS.NET 2005 parse .js files? Friso Wiskerke answers 0 January 16th, 2006 03:25 PM
JS file handled differently than in-line script block bas jaburg answers 0 November 19th, 2005 05:15 AM