hello list, there is s.th. i can not seem to understand about theEventSelectors. it seems that when i trigger an Ajax.Request with EventSelectors, this kills the event handler. i have two simple examples, where clicks on <li> elements are handeled. the first one [1] does not do any ajax, and behaves as expected. the second one [2] does an Ajax.Request once... and after that, no click is listened too anymore... am i doing s.th. wrong? cheerz ... caillou [1] http://files.caillou.ch/script.aculo.us_sandbox/li.html [2] http://files.caillou.ch/script.aculo.us_sandbox/li.ajax.html --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Check out the last 3 lines in event-selectors.js, I think thats the root of your problem comment them out and it''ll work, but I don''t know much about that JS script so those 3 lines must have some purpose On Feb 22, 12:55 pm, caillou <cail...-OI3hZJvNYWs@public.gmane.org> wrote:> hello list, > > there is s.th. i can not seem to understand about theEventSelectors. > > it seems that when i trigger an Ajax.Request with EventSelectors, this > kills the event handler. > > i have two simple examples, where clicks on <li> elements are handeled. > > the first one [1] does not do any ajax, and behaves as expected. > > the second one [2] does an Ajax.Request once... and after that, no click > is listened too anymore... > > am i doing s.th. wrong? > > cheerz ... caillou > > [1]http://files.caillou.ch/script.aculo.us_sandbox/li.html > [2]http://files.caillou.ch/script.aculo.us_sandbox/li.ajax.html--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> Check out the last 3 lines in event-selectors.js, I think thats the > root of your problem > > comment them out and it''ll work, but I don''t know much about that JS > script so those 3 lines must have some purposethanks... this helped ;) --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---