...

View Full Version : passsing javascript variable via URL and read it in form textfield



korssane
09-15-2011, 03:55 AM
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 !!

Old Pedant
09-15-2011, 04:18 AM
var newID = 2;
row.insertCell(6).innerHTML = "<a href=Update_Gate.cfm?GateIdVar=" + newID + ">Edit Gate</a>";

korssane
09-15-2011, 04:29 AM
Thanks Old Pendant !!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum