Advertisement

06.10.2008 at 09:03PM PDT, ID: 23474575
[x]
Attachment Details

javascript extract querystring

Asked by lovingatx in JavaScript

Tags: Java Script, ie

Given a URL and Querystring
http://www.hotmail.com?1=Hello&2=My&3=Name&4=is&5=John

I don't know how many parameters will be in the querystring, but I need to extract each one and concatenate them into one string using JAVASCRIPT

Using Javascript:

Start Loop
Get Next parameter from querystring
StringVariable = previous parameters + currentParameter
Next Loop until no more parameters exist

echo StringVariable
output = 'Hello My Name is John'

Start Free Trial
[+][-]06.10.2008 at 09:39PM PDT, ID: 21756813

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2008 at 09:42PM PDT, ID: 21756828

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.10.2008 at 09:46PM PDT, ID: 21756847

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2008 at 08:37PM PDT, ID: 21766044

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 05:00PM PDT, ID: 21774670

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: Java Script, ie
Sign Up Now!
Solution Provided By: steveberzins
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.13.2008 at 01:59PM PDT, ID: 21782732

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628