hi i have remote link with spinner. The problem is that only works in ie <%= link_to_remote user.username, :url => { :action => ''fetch'', :controller => ''users'', :user => user.id}, :update => { :success => ''good_div'', :failure => ''error_div'' }, :complete => "Element.hide(''spinner'')", :loading => "Element.show(''spinner'')"%> and spinner: <div id="good_div"> </div> <img alt="spinner" id="spinner" src="/images/spinner.gif" style="display:none;" /> It is working fine with internet explorer, but in firefox it doesn`t hide spinner element, it is always on screen. what am i doing wrong here? thanks all serz -- 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 -~----------~----~----~----~------~----~------~--~---
did you try <%= link_to_remote user.username, :url => { :action => ''fetch'', :controller => ''users'', :user => user.id}, :update => { :success => ''good_div'', :failure => ''error_div'' }, :loading => "Element.toggle(''spinner'')", :complete => "Element.toggle(''spinner'')" %> sine serz wrote:> hi > > i have remote link with spinner. The problem is that only works in ie > > <%= link_to_remote user.username, :url => { :action => ''fetch'', > :controller => ''users'', :user => user.id}, > :update => { :success => ''good_div'', > :failure => ''error_div'' }, > :complete => "Element.hide(''spinner'')", > :loading => "Element.show(''spinner'')"%> > > and spinner: > <div id="good_div"> > </div> > <img alt="spinner" id="spinner" src="/images/spinner.gif" > style="display:none;" /> > > It is working fine with internet explorer, but in firefox it doesn`t > hide spinner element, it is always on screen. > > what am i doing wrong here? > > > thanks all > > serz-- 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 -~----------~----~----~----~------~----~------~--~---
Steven Albarracin wrote:> did you try > > <%= link_to_remote user.username, :url => { :action => ''fetch'', > :controller => ''users'', :user => user.id}, > :update => { :success => ''good_div'', > :failure => ''error_div'' }, > :loading => "Element.toggle(''spinner'')", > :complete => "Element.toggle(''spinner'')" > > %> > >hi steven, yes it works fine now. thanks -- 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 -~----------~----~----~----~------~----~------~--~---