I’m writing an online application where I save some texts to the database.
There are like 5 “textarea”-s and 5 “input type=text”-s.
I’m also implementing a search to easily find and edit the DB entries. A new select window is displayed(using prototype and ajax), and when clicking on any of its entries the below form gets populated (it’s the same form that was used to add new results).
Now here’s where the problem arises….
The problem seem to go away when i call form.reset(), but that messes up some code generated select/option fields, besides i wan’t the data to remain.
The INPUT fields seem to have problems with .update (or it just didn’t work for me), so i had to rewrite them to .value= (have tried .value with textareas as well, hoping that would fix anything, sadly with no avail).
So, has anyone any clues why this is happening and how to fix it, without having to reset the form on every step?
.value and .innerHTML seemed to fix the problem