i am trying to add an ID to a web page URL.
i have (in ASP) reqID = request.QueryString("ID", and can read this with response.write, but when i try to put this value into my URL is returns nothing:
location = "../folder1/comment.asp?ID=" + reqID;
if i put location = "../folder1/comment.asp?ID=2" it works fine. is it because the variable wasn't created in javascript, and if so, how can i get the ID from the URL in javascript, ie is there a similar function to request.querystring in javascript?
i have (in ASP) reqID = request.QueryString("ID", and can read this with response.write, but when i try to put this value into my URL is returns nothing:
location = "../folder1/comment.asp?ID=" + reqID;
if i put location = "../folder1/comment.asp?ID=2" it works fine. is it because the variable wasn't created in javascript, and if so, how can i get the ID from the URL in javascript, ie is there a similar function to request.querystring in javascript?