By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,398 Members | 1,362 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,398 IT Pros & Developers. It's quick & easy.

work with ajax and window.location

P: 1
please help me
I send parameters to another page by window.location="private1.asp?userid=" + document.getElementById('userid').value&"name="+us ername;
but i don't know how can i use parameters in private.asp
Jan 20 '13 #1
Share this Question
Share on Google+
1 Reply

P: 185
Please check the asp tutorial at

BTW, you may get only one parameter at your asp page (i.e. userid) as the character & need to proceed the name=. It should be something like this:

Expand|Select|Wrap|Line Numbers
  1. window.location="private1.asp?userid=" + document.getElementById('userid').value + "&name="+username;
One more thing, you need to escape the string before putting at the URL to make sure you are having a valid URL (i.e. use escape function).
Jan 20 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.