| View previous topic :: View next topic |
| Author |
Message |
Klimapol
Joined: 27 May 2006 Posts: 134
|
That won't help me.
I wanted each row to contain a separate form.
Actually, that's what i've been doing until i ran into a javascript problem. went to validate and found out why :) |
| |
|
|
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| is this to edit the data row by row ? |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| yes. |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
Klimapol, wrap the whole <table> in a <form> and have a submit button per row ... and detect which button is clicked to work out which row is to be editted
A little ugly ... but it iwll work |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
i thikn i'm going to bind an event to each field and use an xmlhttp request instead.
Get rid of submit all together.
It's the proper way anyhow, i just haven't done it before so i was avoiding it. |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| that will work if you know that all clients will have js enabled |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
| They will |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
Onblur is your friend  |
| |
|
|
Klimapol
Joined: 27 May 2006 Posts: 134
|
Sure is!
Although it through me for a loop, i'm pretty new to js, and i was using addevent "onblur" and couldn't figure out why it wasn't working. lo and behold i had to use just "blur"
Oh well
Live and learn! |
| |
|
|
montanarry
Joined: 13 May 2006 Posts: 175
|
| Lol |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|