On Jun 29, 7:29 am, Valentino Lun <rails-mailing-l...@andreas-s.net>
wrote:
> Dear all
>
> After I search something, it can successfully display the result in the
> browser. However, I view the Page source and found that the HTML code
> between the 'event_list' div tag is not updated , the content is same as
> before searching....It is so strange. This problem happen in both IE and
> firefox...
>
I think browsers are just lazy about updating the page source. If the
changes you've made actually display then i wouldn't worry about it
Fred
> Any idea?
>
> Thank you very much.
>
> Valentino
>
> Source code for reference.
> View
> <% form_remote_tag :html => {:action => "index", :id => 'event_form'},
> :update => 'event_list', :before =>
> "$('spinner').show();$('event_list').hide()", :success =>
> "$('spinner').hide();$('event_list').show()" do %>
>
> .......
>
> <%= submit_tag "Search" %>
>
> <% end %>
>
> <div id="event_list">
> <%= render :partial => 'event_list' %>
> </div>
>
> Controller
> def index
>
> .........
>
> if request.xml_http_request?
> respond_to do |format|
> format.html {render :partial => "event_list"}
> end
> end
> end
> --
> Posted viahttp://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@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---