Hi there,

I am observing a form with the event  "submit" on my website. I stop
the event and make a Ajax request, where I send
form.serializeElements() as post parameters.

Now my Problem is, that I dont know wich submit buttons fired that
event. Yes, I could make an additional event listener for that, but I
dont want to do that.

In Google I found this page (http://andrewu.co.uk/webtech/comment/?
easy_ajax_with_prototype), where is written "...the form onsubmit
handler already knows the node that fired the submit event.."

Firebug is telling me:
- srcElement is not set
- target is routed to the parent form by prototype
- originalTarget is routed to the parent form by prototype
- explicitOriginalTarget is what I need, but taht only works for
Firefox
- activeElement works too, but thats only Internet Explorer

I still havent found a solution for Safari.


But I still havent found, where this is meant to be.

Maybe somebody can help me?


Best regards,
Azim


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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