|
| 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 :) |
| is this to edit the data row by row ? |
| yes. |
| 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 |
| 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. |
| that will work if you know that all clients will have js enabled |
| They will |
| Just meansi i'd be sending a heck of a lot more data than i would need to per row. But the xml request will fix that too. |
| Onblur is your friend :) |
| 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! |
| Lol |
| Klimapol, You don't need a form for each row, just enclose the table in the form. |
| autos06, yup, just did that. |
| Then whatever 'actions' you put in the row should be named to include the id for the row. |
| Well, you can certainly toss XHR on top of that for those that have it. As long as it falls back to behave properly without it. |
| thanks ;) |