|
-
Feb 17th, 2005, 04:05 PM
#1
Thread Starter
Fanatic Member
[RESOLVED FINALLY!] Grab param value
I'm using javascript along with asp.net and vb.net and have some questions.
I have a page that loads with parameters in the URL. Looks something like this:
http://www.page.com/page.aspx?tokenID=133
There's a dropdown list in my page, and when the value is changed I have javascript that automatically reloads the page and creates another parameter in the url using the value of the selected dropdownlist. Problem is it removes my tokenID paramter with this new one (ProspectID), but i need them both in there. Here's my javascript:
Code:
var pval = document.forms["_ctl0"].ProspectHeader_ProspectsMainListBox1;
var javaid = pval.options[pval.selectedIndex].value;
window.location.href ="http://www.page.com/ProspectMenu.aspx?ProspectID=" + javaid;
I know I need to grab the value of my tokenid parameter and add it to my window.location.href but I'm not sure how to do that.
Thanks!
Last edited by drpcken; Mar 23rd, 2005 at 04:41 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|