mtin79-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2008-Mar-31 22:53 UTC
mouseover with observe-method doesn`t work on hyperlink
spend my whole day now on the following problem and can`t nail it down. i have to anchors : <%= link_to_remote("", {:url => { :controller => "filter", :action => "male_users_selection" }}, {:id => "maleSelection"}) %> <%= link_to_remote("", {:url => { :controller => "filter", :action => "female_users_selection" }}, {:id => "femaleSelection"}) %> rendered as this : <a id="maleSelection" onclick="new Ajax.Request(''/filter/ male_users_selection'', {asynchronous:true, evalScripts:true}); return false;" href="#"/> <a id="femaleSelection" onclick="new Ajax.Request(''/filter/ female_users_selection'', {asynchronous:true, evalScripts:true}); return false;" href="#"/> when someone hovers over them i need to replace a background-image on another element (this happens in hoverMaleListerenr). unfortunatelly this never is called. Event.observe(''maleSelection'',''mouseover'', hoverMaleListener); Event.observe(''maleSelection'',''mouseout'', hoverMaleListener); don`t know whats the problem. if i observe the event on a different element eg.: div-element. everything works fine. any ideas out there? help is much appreciated! thanks martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---