> : I was attempting to attach event handlers to elements added via updater
I notice this too with Ajax.updater, if you add any DOM elements to
the div you are updating, anything triggered by onSuccess they may not
necessarily exist yet, but with onComplete the elements have been
drawn and you can manipulate them.. so like this fails:
new Ajax.Updater(
'products_div',
'/some_url', {
method: 'get',
onSuccess: {
// do stuff to elements inside products_div
}
});
but replace onSuccess with onComplete and you're good to go..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---