Hello,
I just switched to using Passenger from using Apache/Mongrel cluster.
I have an AJAX form:
--------------------------------
<% form_remote_tag :url => {:controller => "networks", :action =>
'search'},
:update => 'searchResults',
:loading => "Element.hide('goBtn');
Element.show('fts-loader')",
:complete =>
"Element.show('goBtn');Element.hide('fts-loader'); " do %>
<table border="0" bgcolor="#E5E5E5" cellpadding="0">
<tr>
<td><span
class="headerTextGreen">Search </span></td>
<td><%= text_field_tag 'search_phrase', '', :size =>
'20', :class=>'search-box' %></td>
<td width="20">
<%= image_submit_tag 'btnGo.gif', :id => 'goBtn',
:class => 'btnSearch' %>
<%= image_tag 'searchWait.gif', :id =>
'fts-loader1', :style => 'display:none', :size => "15x14" %>
</td>
</tr>
</table>
<% end %>
-------------------------------
This form takes search string and then displays search results in div
inside the page ,searchResults, and this was working fine with
Apache/Mongrel.
After using Passenger it still works but instead of displaying search
results in the "searchResults" div, it refreshes the whole page with the
search results as the div is the only page that the page has.
Any ideas?
Thanks,
Tam
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---