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) %><br>
>
> <%= observe_field(:search,
> :frequency => 1,
> :update => :results,
> :url => { :action => :search } ) %>
>
> <span id="results">The Vengayam</span>
>
> 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
--
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
-~----------~----~----~----~------~----~------~--~---