Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JAVA SCRIPT + ASP
Message
From
05/01/2001 09:09:03
 
 
To
04/01/2001 22:03:54
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, United States
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00459644
Message ID:
00459754
Views:
19
>I want to open a new window using Java Script but I want that window to open up passing asp values to the url. ex. window.open(mypage.asp)
>
>In the url I would like to see the variables for name, city etc.
>
>mypage.asp?city=TEST&name=thestore

Store the values in hidden fields which you can access using the DOM from your client side script.

In the below example, two values are stored to memory variables based on the values of two hidden fields (txtTestPK.value and txtTestType.value) where commitchanges is the name of the form:

function cancelbtn_onclick() {
var nTest = document.commitchanges.txtTestPK.value;
var cType = document.commitchanges.txtTestType.value;
window.open("assetclassbytest_" + cType + ".asp?TestPK=" +
nTest, target="_top");
}

Hope this helps,

-JT
Jeff Trockman, MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform