search for: apply_behaviour

Displaying 3 results from an estimated 3 matches for "apply_behaviour".

2006 Oct 04
0
UJS Plugin - apply_behaviour Question
Anyone using the Unobtrusive Javascript for Ruby On Rails Plugin? I have some code that looks like this. <% apply_behaviour ''select:click'' do |page, element, event| page.insert_html :top, ''the_list'', "<li>hi</li>" end %> What I would like to do is list the element.value rather than the string "hi" but I''m a bit confused on how to do thi...
2007 Jul 08
0
UJS and make_observed
<p class="lastwinner"> <%= text_field_tag :user_search, params[ :user_search ] %> </p> <%= apply_behaviour "#user_search", make_observed( :field, :update => ''contresults'', :with => "''user_search='' + escape($F(''user_search''))", :url => { :controller => ''communit...
2008 May 30
0
UJS for rails plugin Installation problems
...efers to the symbol :unobtrusive that I added to the javascript_tag as follows: <%= javascript_include_tag ''protoype'', :unobtrusive%> Looks like rails can''t load or find the UJS functions, because at some point, and I don''t know how, I got the error "apply_behaviour" not defined... Any ideas how to solve this problem and get UJS working? -- View this message in context: http://www.nabble.com/UJS-for-rails-plugin-Installation-problems-tp17553119p17553119.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~-...