Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JAVA SCRIPT + ASP
Message
De
05/01/2001 09:09:03
 
 
À
04/01/2001 22:03:54
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, États-Unis
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00459644
Message ID:
00459754
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform