|
Mailing Lists
|
Home /
Groups /
Javascript
passing javascript varial into uRL and then read it inthe othe rpage
hi ,Mo Lay 09/14/11 11:20 P var newId = 2;Charlie Griefer 09/15/11 06:47 A hi , i am trying to pass a javascript variable into URL ..but not getting the value.. var newID = 2; row.insertCell(6).innerHTML = "<a href=Update_Gate.cfm?GateIdVar=newID>Edit Gate</a>"; i am getting "newID" in Update_Gate.cfm page ... i want to pass this javascript variable in url and read it on the other page as form field value any help !! var newId = 2; row.insertCell( 6 ).innerHTML = "<a href=Update_Gate.cfm?GateIdVar=" + newId + ">Edit Gate</a>"; You need to concatenate your variable value (newId) with the literal string (everything else). By just passing one quoted literal string, 'newID' is just that... a literal string. -- Charlie Griefer http://charlie.griefer.com (http://charlie.griefer.com/) I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. ----- Excess quoted text cut - see Original Post for more -----
|
May 25, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||