I have a form which contains widgEditor (http://www.themaninblue.com/
experiment/widgEditor/) elements. This script adds onsubmit calls to
the form to clean itself up before submitting values.

The problem arises when I try to submit the form through javascipt
with $(form).submit();. When this happens it does not fire any of the
onSubmit functions which widg added. This works fine if i submit the
form through a normal submit button.

This is the code in widg (I do not want to change this, just for
reference).
theForm.observe('submit', function(e) {

How can I get my JS to execute the onsubmit actions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to