suki
2009-Jun-04 18:46 UTC
How do make the page refresh into the same position of the page previously?
I often have to save, delete, or update records. That could be a very long list, or multi pages. How can I come back to the same position I was before the page refresh? Thank you very much! suki
Sandip Ransing
2009-Jun-05 08:25 UTC
Re: How do make the page refresh into the same position of the page previously?
You can do this using javascript scroll method. do some google. -sandip On Fri, Jun 5, 2009 at 1:13 AM, suki <li.yu-4+jYJfmkT58@public.gmane.org> wrote:> > Thanks, Robby. > > Normally, in Controller, I have > > redirect_to "/user" > > there is no place to put this anchor. Maybe after the view, i.e. > index.rhtml#where-i-want-to-jump-down-to? Where can I put this anchor > in controller, then the system will be able to render to such a view > with anchor. > > Thank you very much! > > On Jun 4, 3:10 pm, Robby Russell <ro...-/Lcn8Y7Ot69QmPsQ1CNsNQ@public.gmane.org> wrote: > > An html link anchor? > > > > <a name="where-i-want-to-jump-down-to"></a> > > > > then you just need to reload the page at > /x.html#where-i-want-to-jump-down-to > > > > Cheers, > > Robby > > > > On Thu, Jun 4, 2009 at 11:46 AM, suki<li...-4+jYJfmkT58@public.gmane.org> wrote: > > > > > I often have to save, delete, or update records. That could be a very > > > long list, or multi pages. How can I come back to the same position I > > > was before the page refresh? > > > > > Thank you very much! > > > > > suki > > > > -- > > Robby Russell > > Chief Evangelist, Partner > > > > PLANET ARGON, LLC > > design // development // hosting w/Ruby on Rails > > > > > http://planetargon.com/http://robbyonrails.com/http://twitter.com/planetargon > > aim: planetargon > > > > +1 503 445 2457 > > +1 877 55 ARGON [toll free] > > +1 815 642 4068 [fax] > > >-- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.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 -~----------~----~----~----~------~----~------~--~---
mike
2009-Jun-05 10:26 UTC
Re: How do make the page refresh into the same position of the page previously?
you can do redirect_to "/user#anchor" or redirect_to :controller => ''/user'', :anchor => ''anchor'' On Thu, Jun 4, 2009 at 9:43 PM, suki <li.yu-4+jYJfmkT58@public.gmane.org> wrote:> > Thanks, Robby. > > Normally, in Controller, I have > > redirect_to "/user" > > there is no place to put this anchor. Maybe after the view, i.e. > index.rhtml#where-i-want-to-jump-down-to? Where can I put this anchor > in controller, then the system will be able to render to such a view > with anchor. > > Thank you very much! > > On Jun 4, 3:10 pm, Robby Russell <ro...-/Lcn8Y7Ot69QmPsQ1CNsNQ@public.gmane.org> wrote: > > An html link anchor? > > > > <a name="where-i-want-to-jump-down-to"></a> > > > > then you just need to reload the page at > /x.html#where-i-want-to-jump-down-to > > > > Cheers, > > Robby > > > > On Thu, Jun 4, 2009 at 11:46 AM, suki<li...-4+jYJfmkT58@public.gmane.org> wrote: > > > > > I often have to save, delete, or update records. That could be a very > > > long list, or multi pages. How can I come back to the same position I > > > was before the page refresh? > > > > > Thank you very much! > > > > > suki > > > > -- > > Robby Russell > > Chief Evangelist, Partner > > > > PLANET ARGON, LLC > > design // development // hosting w/Ruby on Rails > > > > > http://planetargon.com/http://robbyonrails.com/http://twitter.com/planetargon > > aim: planetargon > > > > +1 503 445 2457 > > +1 877 55 ARGON [toll free] > > +1 815 642 4068 [fax] > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---