Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Passed arguments (java)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 03 April 2003 :  12:41:11  Show Profile  Visit PeeWee.Inc's Homepage
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

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 03 April 2003 :  12:47:20  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Take a look at http://javascript.about.com/library/scripts/blquerystring.htm

(thanks Steve, link corrected)

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz

Edited by - OneWayMule on 03 April 2003 13:11:44
Go to Top of Page

Steve D.
Average Member

USA
640 Posts

Posted - 03 April 2003 :  13:08:34  Show Profile  Visit Steve D.'s Homepage  Send Steve D. a Yahoo! Message
that link didn't work for me

Swing Dancing Video Clips - It's All Swing! Forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07