Displaying 2 results from an estimated 2 matches for "search_hit".
Did you mean:
search_hits
2006 May 23
1
Help with observe_field
...ield, I get a javascript error "Form is not
defined". Any thoughts?
__View: search.rhtml__
<label for="search">Search:</label>
<%= text_field_tag :search %>
<%= observe_field(:search,
:frequency => 0.25,
:update => :search_hits,
:url => { :action => "search"}) %>
<p>Search Results:</p>
<div id="search_hits"></div>
__Controller: search_controller.rb__
class SearchController < ApplicationController
WORDLIST = %w(Rails is a full-stack, really cool...
2006 Feb 09
6
troubleshooting an observe_field
...;'s my observe_field code inside the partial:
<h1><label for="searchtext">Live Search:</label></h1>
<%= text_field_tag :searchtext %>
<%= observe_field(:searchtext,
:frequency => 0.5,
:update => :search_hits,
:url => { :action => :live_search },
:loading => "Element.show(''search-indicator'')",
:loaded => "Element.hide(''search-indicator'')",
:with => &...