hello guys
can anybody help me how to use observe_field
I had implemented the following code
but it didnot work. No error was arising but there is no o/p
views
index.rhtml
Search :
<%= text_field_tag(:search) %>
<%= observe_field(:search,
:frequency => 1,
:update => :results,
:url => { :action => :search } ) %>
The Vengayam
controller
thakkali.rb
def search
@q = request.raw_post
end
views
search.rhtml
<%= @q + “hai” %>
Thanx inadvance
Regards
Narayana
Narayana Karthik wrote:
hello guys
can anybody help me how to use observe_field
I had implemented the following code
but it didnot work. No error was arising but there is no o/p
views
index.rhtml
Search :
<%= text_field_tag(:search) %>
<%= observe_field(:search,
:frequency => 1,
:update => :results,
:url => { :action => :search } ) %>
The Vengayam
controller
thakkali.rb
def search
@q = request.raw_post
end
views
search.rhtml
<%= @q + “hai” %>
Thanx inadvance
Regards
Narayana
sorry gus for making noise
i found the solution for my problem
soln:- I have to include <%= javascript_include_tag “prototype”
,“effects” %>
in index.rhtml
regards
narayana