Hi,
I have 3 chained select (not sequential) and I tried to create 3
observers in order to change select contents
dynamically in this way:

[code]
Event.observe(document.getElementById(this.searchItem1),'change',this.updateSearchResults1.bindAsEventListener(this));

Event.observe(document.getElementById(this.searchItem2),'change',this.updateSearchResults2.bindAsEventListener(this));
Event.observe(document.getElementById(this.searchItem3),'change',this.updateSearchResults3.bindAsEventListener(this));
[/code]

When I change the value of 1 of the 3 select the code in the function
updateSearchResultsX is executed and in continues working everytime i
change the value of the same select.

When I try to change 1 of the other select values(after the first
change) the observer doesn't seem to work infact nothing happens.

Can you please help me????


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

Reply via email to