|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
DOM and asp
I have a table that looks like this. All the data from the database is put into a table, through a loop
I am using ADO, in beginner asp 1 ABC 12 2 DDD 14 3 GHI 78 4 JKL 77 5 PLS 22 6 QWE 22 7 OOO 55 When i click any of the names like JKL, or PLS i want a text box to appear in the same row, with the values written in the text boxes, for updating so my question is how do you do that, do you use DOM (innerHTML property) ? if so, how do you do that? |
|
#2
|
|||
|
|||
|
Quote:
Yes, you would use DOM, but it would make much more sense if you were doing this to edit a value to have your list in a select with the option value set to the record id and the display set to the text value. You would then have an empty text field that you could put the new value in. When yoy submitted the form the ID of the record and the new value would be passed back to the server for you to update your db table. |
|
#3
|
|||
|
|||
|
i have a slight problem.
i am trying to change innerHTML of a table row through a function. but because on of my update function involves, submitting the form. the innerHTML goes away. any idea how to fix that. see here Code:
function dosubmit(itm,row){
frmInfo.opr.value = itm
frmInfo.submit();
document.getElementById('list').rows[row].innerHTML=document.getElementById('update').rows[0].innerHTML
}
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > DOM and asp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|