On 4/17/06, Erin Brewer <[EMAIL PROTECTED]> wrote:

> My initial approach is to have a 2nd empty form tag on the page, and
> whenever the user changes a form field it will call a function that will
> dynamically create a new hidden form element in the 2nd form and write
> the attribute name and value into the hidden field. Then serialize this
> 2nd hidden 'data' form.

Performancewise, this should be the best thing. You could refine it to
hold the data in an Object and then convert the Object to a string and
transfer this string. Saves you hitting the DOM. You could also
compare .value to .defaultValue of a input field and remove the field
from the holding Object, if the user reverts the data to the initial
value.

Bye,
  Martin
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to