Matthew Williams
2007-Sep-17 17:28 UTC
Getting incompatabilities with IE but not Firefox; thoughts?
I''ve got the following code in a view:
<%= link_to_remote("Activities by Request",
:update => "chartDisplay",
:url => {:action => :show_spinner}, :complete
=> remote_function(:update => "chartDisplay", :url =>
{:action => :activities_by_request, :name =>
@project.name}) ) %>
This renders to:
<a href="#" onclick="new
Ajax.Updater(''chartDisplay'',
''/dashboard/show_spinner'',
{asynchronous:true, evalScripts:true, onComplete:function(request)
{new Ajax.Updater(''chartDisplay'',
''/dashboard/activities_by_request?name=NGEXP'',
{asynchronous:true, evalScripts:true})}}); return false;">Activities by
Request</a>
In Firefox, this functions just the way I need it to. It executes my
show_spinner action and then calls the activities_by_request action and
does what I need it to do. However in IE I only see the first action
fired (and it doesn''t completely work and all that happens in that
action is a render_text).
More info that might help out...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en">
Any thoughts or suggestions? I''ve done basic prototype AJAX calls
before while not using Rails, so I don''t understand why
they''re not
functioning here.
--
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
-~----------~----~----~----~------~----~------~--~---