[Javascript] Getting New Data
BEKIM BACAJ
trojani2000 at hotmail.com
Sun Feb 23 14:52:35 CST 2003
We've had e similar question few years ago in this forum, but your question
is a bit blury.
If you like the new coordinates read from another file replacing the current
one, you can simply point to the new file name and location with the onclick
event dependant where you've placed it and call the new script file with the
new coordinates. Than at the end of this script file, place the command that
triggeres the function you like, and navigate to the page you've pointed to.
P.S.
There are also events that control the scpripts loading process, and triger
functions from these ready state browser defined events.
In IE you can use the scripts ID to call for the new .js file to replace the
coordinates. In NN try scripts NAME.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<SCRIPT ID="newCords" NAME="newCords"...>
...;
...onclick="newCords.location='coords2.js'"...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Regards!
>From: "Tim Makins" <timothy at utvinternet.com>
>Reply-To: javascript at LaTech.edu
>To: <javascript at LaTech.edu>
>Subject: [Javascript] Getting New Data
>Date: Fri, 21 Feb 2003 19:29:25 -0000
>
>Hi - I am playing around with some ideas, but I don't know if they are
>possible. I am working on a script that can read a list of co-ordinates,
>and
>take action on them - in my case, positioning small graphics where the
>co-ordinates say they are to go on the webpage.
>
>However, what I would like to be able to do is to load a new file
>containing
>a new set of co-ordinates, but I don't know how to do this, or if its even
>possible. Perhaps if the co-ordinates were in a file called page2.js, they
>could be loaded and read, but how to define a button or link that loads a
>new page on command, and then makes the script aware that it has arrived ?
>
>Some general ideas would be most welcome...
>
>
>Tim in Ireland.
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
More information about the Javascript
mailing list