Hello:
I have a remote call i''m making in a search feature that''s on
a page
with another form.
Off to the side, this remote form performs the search and returns the
results.
Problem is that if the user enters another search, the remote form
doesn''t fire and no
new results are returned.
The remote form is this:
<div style="padding: 10px" align="center"
valign="center">
<% form_remote_tag :url => ''/users/searchpt'' do
-%>
<%= text_field_tag "search", nil, :size => 25
%>
<%= submit_tag "Search" %>
<% end %>
</div>
<div id="srchRes" style="padding: 10px;"
align="center" valign="center">
</div>
Where the div "srchres" is where the results are placed.
And here''s the render code from the controller that places the results:
render :update do |page|
if @users.empty?
page.replace ''srchRes'', :partial =>
''/users/usearchempty''
else
page.replace ''srchRes'', :partial =>
''/users/usearchfriends''
end
end
I''m sure it''s something I''m doing with a mismatch of
methods. Any help
you could
provide would be greatly appreciated.
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?hl=en
-~----------~----~----~----~------~----~------~--~---