Anyone using the Unobtrusive Javascript for Ruby On Rails Plugin? I have some code that looks like this. I made external false so I could look at the code generated. <%= apply_behaviour ''select:click'', :external => false do |page, element, event| x = element.value page.insert_html :top, ''the_list'', "<li>#{x}</li>" end %> This generates the following: <script type="text/javascript"> //<![CDATA[ Event.addBehavior({ "select:click": function(event) { this.value().toS(); new Insertion.Top("the_list", "<li>#<UJS::JavascriptProxies::ReferencedJavascriptElementProxy:0x35c553c></li>"); } }); //]]> </script> Any ideas on how I could get the value of x correct? Thanks, Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---