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@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