|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi!
I'm having a problem inserting a row in a table with form elements inside it. The problem is "identifying the table". The ID arttribute works fine with IE, does anyone has any idea as to how to do it in Netscape without using layers? The following code works fine in IE document.all(tableid).insertRows(); any idea about how to achieve the same in NS? |
|
#2
|
|||
|
|||
|
document.all[] is specifically an IE 4+ property (probably why it doesn't work in Navigator
).Have you tried document.forms[] (an array of FORM objects)? Actually, I just looked up insertAdjacentHTML() to see if that could help you, but that's IE-specific as well. It could be that the actual property you are trying to use is specific to IE only. I don't know whether or not you have investigated doing it server-side, but that would be a relatively simple task in comparison. [This message has been edited by pieux (edited August 23, 2000).] |
|
#3
|
|||
|
|||
|
Hi! Pieux
Thanks for the reply .. U cannot use the document.forms[] as well as a table is not a form element.. Actually what i'm trying to achieve is giving the fuctioanlity of editing mutiple rows of data at the client side without submitting the page( actually dynamically altering the content of the page at client side..) and this cannot be achieved by any server side code. Anyways thanks for ur reply |
|
#4
|
|||
|
|||
|
Ah. Well, rather than actually editing the data, how about giving the illusion of doing such, by hiding/showing layers.
|
|
#5
|
|||
|
|||
|
Actually a good idea, but the only problem is for each row i will need a layer.. this might make the page a bit heavy.
Thanks anyway.. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Dynamically inserting Row in tables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|