Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
request.querystring / javascript? ? #@&!*$
Old 05-30-2008, 08:52 PM request.querystring / javascript? ? #@&!*$
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Unreal, decided to convert a site to javascript in prep for AJAX, imagine my suprise when my variables were not being passed twixt pages via request.querystring, imagine my further suprise to learn that javascript has no such utility for doing so! ... OR am I wrong?
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-09-2008, 09:35 AM Re: request.querystring / javascript? ? #@&!*$
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
This does the job for those encountering the same prob.

var page = location.href.split(/\?/);
var params , pair;
params = page[1].split(/&/);
CustID=params[0].replace("CustID=","");
MenuItem=params[1].replace("MenuItem=","");
ProdID=params[2].replace("ProdID=","");
Pkg=params[3].replace("Pkg=","");
Sze=params[4].replace("Sze=","");
Flv=params[5].replace("Flv=","");
Desc=params[6].replace("Desc=","");
Info=params[7].replace("Info=","");
Per=params[8].replace("Per=","");
Shp=params[9].replace("Shp=","");
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 06-12-2008, 12:11 AM Re: request.querystring / javascript? ? #@&!*$
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
Or you could just use inline asp to pass it directly to javascript:

var qs = '<%=Request.ServerVariables("QUERY_STRING")%>';

And then split it out from there.
__________________
~nyef

Please login or register to view this content. Registration is FREE

Last edited by nyef; 06-12-2008 at 12:14 AM..
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Reply     « Reply to request.querystring / javascript? ? #@&!*$
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11186 seconds with 12 queries