Solved

javascript to pass  querystring

Posted on 2009-06-29
3
646 Views
Last Modified: 2013-11-19
Hi,

Can someone show me how to pass  a javascript variable into a querystring. I'm using html and javascript only. The querystring will ultimately be passed to an xslt.

i have the variable year in a js file and I want to add its value to my calendar.html url

Thanks

0
Comment
Question by:CharlieDev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 29

Accepted Solution

by:
Badotz earned 500 total points
ID: 24735362
Something like:


var url = 'http://www.someplace.com?parm1=1&parm2=2&etc=etc';

Open in new window

0
 

Author Closing Comment

by:CharlieDev
ID: 31597841
Thanks
0
 
LVL 29

Expert Comment

by:Badotz
ID: 24736525
No worries - glad to help.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question