Digital Point Forums
Wire Transfer

Go Back   Digital Point Forums > Design & Development > Programming > JavaScript
Google Analytics
Log In to view
your analytics

Reply
 
Thread Tools
  #1  
Old Aug 10th 2005, 5:52 am
relixx's Avatar
relixx relixx is offline
Twilight Vanquisher
 
Join Date: Jun 2005
Location: /dev/urandom
Posts: 941
relixx has a spectacular aura aboutrelixx has a spectacular aura about
javascript and querystrings

Is it possible to access querystring variables with javascript like you can with ASP/PHP/etc?
Reply With Quote
  #2  
Old Aug 10th 2005, 6:15 am
anotherchancetosee anotherchancetosee is offline
Grunt
 
Join Date: May 2005
Posts: 53
anotherchancetosee is on a distinguished road
Quote:
Originally Posted by relixx
Is it possible to access querystring variables with javascript like you can with ASP/PHP/etc?
Absolutely, you just need to do a bit of Javascript text parsing to pluck them from the URL. I use something like it to pass latitutde and longitude to my Google Maps code for http://racingcircuits.blogspot.com
__________________
Endangered Animals News - Another Chance To See
The latest news on the endangered animals visited by Douglas Adams - The Hitchhiker's Guide To The Galaxy - for his book Last Chance To See.
Reply With Quote
  #3  
Old Aug 10th 2005, 6:53 am
J.D. J.D. is offline
of the Nightfall
 
Join Date: Nov 2004
Posts: 1,198
J.D. has a spectacular aura aboutJ.D. has a spectacular aura about
Quote:
Originally Posted by relixx
Is it possible to access querystring variables with javascript like you can with ASP/PHP/etc?
Use document.location.search to get the search argument string and then parse it (i.e. look for the & and = characters) to break it onto individual arguments.

J.D.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript onClick egdcltd JavaScript 10 Oct 31st 2009 6:28 pm
Stop bots crawling pages with querystrings - how? piniyini Search Engine Optimization 3 Apr 30th 2005 9:37 pm
javascript and php vijaykoul PHP 5 Feb 27th 2005 12:48 am
Javascript version Co op? Colindb Setup / Validation Help 1 Jan 16th 2005 2:14 pm
Javascript Help jalika Search Engine Optimization 4 Nov 19th 2004 8:21 am


All times are GMT -8. The time now is 7:18 pm.