Is it possible to change the URL in the browser window without actually going there? I know I''ve seen flash apps do this. Yahoo maps is an example. Thanks for your help. -- 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 -~----------~----~----~----~------~----~------~--~---
This is called AJAX. Ruby on Rails has excellent support for it. http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html On Apr 18, 7:52 pm, Ben Johnson <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Is it possible to change the URL in the browser window without actually > going there? I know I''ve seen flash apps do this. Yahoo maps is an > example. > > Thanks for your help. > > -- > 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-/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 -~----------~----~----~----~------~----~------~--~---
Here''s a link explaining how to change the URL without refreshing the page (for instance to allow the back button to be used with ajax) http://www.contentwithstyle.co.uk/Articles/38/fixing-the-back-button- and-enabling-bookmarking-for-ajax-apps On Apr 18, 2007, at 4:52 PM, Ben Johnson wrote:> > Is it possible to change the URL in the browser window without > actually > going there? I know I''ve seen flash apps do this. Yahoo maps is an > example. > > Thanks for your help. > > -- > 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 -~----------~----~----~----~------~----~------~--~---
Daniel Fischer wrote:> This is called AJAX. > > Ruby on Rails has excellent support for it. > > http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html > > On Apr 18, 7:52 pm, Ben Johnson <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Right, I want to basically add a feature to AJAX. When I change content on my page I would like to change the URL in the browser window so users can bookmark it. Is this possible? This way I get the benefits of URLs without having to reload the page. -- 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 -~----------~----~----~----~------~----~------~--~---
On 4/18/07, Ben Johnson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Daniel Fischer wrote: > > This is called AJAX. > > > > Ruby on Rails has excellent support for it. > > > > http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html > > > > On Apr 18, 7:52 pm, Ben Johnson <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Right, I want to basically add a feature to AJAX. When I change content > on my page I would like to change the URL in the browser window so users > can bookmark it. Is this possible? This way I get the benefits of URLs > without having to reload the page.You want to use window.location. Its not strictly ajax, its just javascript. here ya go: http://www.google.com/search?q=window.location+changing+url - rob -- http://robsanheim.com http://seekingalpha.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 -~----------~----~----~----~------~----~------~--~---
On 19 Apr 2007, at 06:35, Rob Sanheim wrote:> On 4/18/07, Ben Johnson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> Daniel Fischer wrote: >>> This is called AJAX. >>> >>> Ruby on Rails has excellent support for it. >>> >>> http://api.rubyonrails.org/classes/ActionView/Helpers/ >>> PrototypeHelper.html >>> >>> On Apr 18, 7:52 pm, Ben Johnson <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> >> >> Right, I want to basically add a feature to AJAX. When I change >> content >> on my page I would like to change the URL in the browser window so >> users >> can bookmark it. Is this possible? This way I get the benefits of >> URLs >> without having to reload the page. > > You want to use window.location. Its not strictly ajax, its just > javascript. > > here ya go: > > http://www.google.com/search?q=window.location+changing+urlWouldn''t that trigger a reload of the page? You could have a look at StateManager from the exanimo site, it''s the only AJAX state manager I''ve found to work quite reliably on all browsers (including Safari). Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 4/19/07, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > > > On 19 Apr 2007, at 06:35, Rob Sanheim wrote: > > > On 4/18/07, Ben Johnson <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > > > > Daniel Fischer wrote: > > > This is called AJAX. > > > > > Ruby on Rails has excellent support for it. > > > > > http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html > > > > > On Apr 18, 7:52 pm, Ben Johnson > <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > > > Right, I want to basically add a feature to AJAX. When I change content > > on my page I would like to change the URL in the browser window so users > > can bookmark it. Is this possible? This way I get the benefits of URLs > > without having to reload the page. > > > > > You want to use window.location. Its not strictly ajax, its just > javascript. > > > > > here ya go: > > > > > http://www.google.com/search?q=window.location+changing+url > Wouldn''t that trigger a reload of the page? You could have a look at > StateManager from the exanimo site, it''s the only AJAX state manager I''ve > found to work quite reliably on all browsers (including Safari). > > > > Best regards > > > > > Peter De Berdt >No, not if you just modify the hash (aka fragment identifier - the piece after the ''#''). see: http://ajaxpatterns.org/Unique_URLs#Solution - Rob -- http://robsanheim.com http://seekingalpha.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 -~----------~----~----~----~------~----~------~--~---