473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

myscript.js

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
Jul 23 '05 #1
3 1699
Johny wrote on 09 apr 2005 in comp.lang.javascript:
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?


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)

Jul 23 '05 #2
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" <no**********************@TheNet.com> wrote in message
news:d3**********@news6.svr.pol.co.uk...
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

Jul 23 '05 #3
Or you can use the full URL.

"Johny" <no**********************@TheNet.com> wrote in message
news:d3**********@news7.svr.pol.co.uk...
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" <no**********************@TheNet.com> wrote in message
news:d3**********@news6.svr.pol.co.uk...
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


Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Gregory | last post by:
Hello, I'm trying to do the above in order to process an image and return the result to an html image control. It fails and my key suspects are either the variable that I'm passing in -...
1
by: cameron | last post by:
I'm looking to use the system (or exec) function to call a shell script in UNIX. The following is the UNIX command line without PHP: /home/public_html/VariableDirectory/myScript.ksh ...
7
by: deko | last post by:
Problem occurs only when running php script at the command line. Here is an example: <?php //myscript.php //-should be called from some page. //-sets cookie on visitor's first visit -...
3
by: Nancy | last post by:
Hi, I am new to python. I am trying to install mod_python in my computer(WinXP Pro, Apache 2.0.50, python2.3.4). I added the following statements in my Apache configuration file httpd.conf ...
4
by: VR | last post by:
First, greetings to everyone :) I'm doing a university seminar & I've encountered a problem. I have a gallery with thumbnails linked on pictures. What I want is popup to be opened with...
4
by: RobG | last post by:
I know you aren't supposed to use innerHTML to mess with table structure, but it seems you can't use it just after a table without damaging the containing element. I added a table to a div using...
8
by: Jan Gregor | last post by:
Hello I run python script on another computer and want to "survive" that script after my logout. the script also uses drive mapping to network drive. Can you help me ? Or better is there some...
1
by: IMRAN SAROIA | last post by:
Hi! How can I call the Javacript or Vbscript code from Web form provided that the Script code resides on the same web form.aspx Regards Imran
3
by: cmrchs | last post by:
Hi, how can I execute a window.print() (in javascript) on a ASP-button control but only when all validation-controls on the page pass the validation-test. I tried using in the Page_Load() :...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.