Solved

javascript to pass  querystring

Posted on 2009-06-29
3
634 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now