its hard to explain what my problrem really is..but i will surely try my best...
-----------
<input type="submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Save" name="cmdSave<%=i%>" onClick='pressMagellan("<%=i%>");'>
<input type="text" value=http://www.webdeveloper.com/forum/archive/index.php/"sample1" name="txtRTE<%=i%>" size="4">
<input type="text" value="sample2" name="txtPromise1<%=i%>">
<input type="text" value="sample3" name="txtDate1<%=i%>">
---------------
i have a looping code where in it displays cmdSave1, cmdSave2, so on...depending on how many records there are...for every cmdSave(i) there is txtRTE(i), txtPromise1(i), txtDate1(i)...what m doing is passing the i in the pressMagellan javascript function..but my problem is how will i get the values of the textbox inside the function...in a normal and uncomplicated way it would be
--------
frm = document.forms.frmwin_FUpdate;
frm.txtRTE.value
----------
but since i have the variable i attached to the name, how can i do it?
awaiting for any reply,
biktoryah
-----------
<input type="submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Save" name="cmdSave<%=i%>" onClick='pressMagellan("<%=i%>");'>
<input type="text" value=http://www.webdeveloper.com/forum/archive/index.php/"sample1" name="txtRTE<%=i%>" size="4">
<input type="text" value="sample2" name="txtPromise1<%=i%>">
<input type="text" value="sample3" name="txtDate1<%=i%>">
---------------
i have a looping code where in it displays cmdSave1, cmdSave2, so on...depending on how many records there are...for every cmdSave(i) there is txtRTE(i), txtPromise1(i), txtDate1(i)...what m doing is passing the i in the pressMagellan javascript function..but my problem is how will i get the values of the textbox inside the function...in a normal and uncomplicated way it would be
--------
frm = document.forms.frmwin_FUpdate;
frm.txtRTE.value
----------
but since i have the variable i attached to the name, how can i do it?
awaiting for any reply,
biktoryah