I''m using the script.aculo.us library to observe a select field and,
depending on the value the user selects, return information from my
server. The Observer works perfectly in IE, and works in Firefox but
with a very annoying problem. Basically, just highlighting a select
option in Firefox triggers the Observer to retrieve data from the
server. This should only happen when the user has actually selected the
option, not just hovered over it.
Here is the Observer code that is used:
new Form.Element.Observer(''Major'', .4, function(element,
value)
{beforeMajor(); new
Ajax.Updater(''semester'',''https://localhost/applications/updateSemesterByMajor'',
{onLoading:function(request){loading()},
onComplete:function(request){completeMajor()}, asynchronous:true,
evalScripts:true, parameters:Form.Element.serialize(''Major''),
requestHeaders:[''X-Update'', ''semester'']})})
Any help/suggestions will are greatly appreciated.
Thanks,
Zachary Naiman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---