Hi, I use ruby on Rails and by the way prototype.js. I have the following generated code from the framework:
//<![CDATA[ new Form.Element.EventObserver('mycomp_id', function(element, value) {new Ajax.Request('/commands/updatereferences', {asynchronous:true, evalScripts:true, parameters:'expr=' + $('mycomp_id').value + '&authenticity_token=' + encodeURIComponent ('JiJBwNeup49dlL3gyen1+vVzDwAHg2ALOVDxmG/gxTY=')})}) //]]> The aim is to register an event listener on a combo box and update the page via ajax when a user change the selected value. All this is working great. The problem is that I need to change the selected value in the combo box using javascript and doing this, no event is fired. The value is changed but my page is not updated. Is there a way to notify the observer that the value has changed? Thanks in advance for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---