PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 03 April 2003 : 12:41:11
|
Anyone know if it's possible to capture passed arguments to a page in Javascript? An example will probably help, so consider this...
In PHP, arguments can be passed to a page via GET or POST methods, and subsequently accessed via the superglobals $_POST and $_GET. So, if I visited a page such as http://www.test.com/?colour=red I can access the value of 'colour' by:
quote: $colour = $_GET["colour"];
I'm working on a server which, for reasons I won't even bother to go into (because I find the sysadmin's excuses rather lame), doesn't have Perl, PHP or ASP ( kris) compiled and running. The only way I can think of accessing such variables is via Javascript (messy I know, but we do what we have to do), but not sure if that's even possible.
Tips, suggestions, thoughts would all be welcomed.
|
De Priofundus Calmo Ad Te Damine |
|