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.
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.
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 J. [email protected]
Daniel F. 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 J. [email protected]
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.
On 4/18/07, Ben J. [email protected] wrote:
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
–
On 19 Apr 2007, at 06:35, Rob S. wrote:
On Apr 18, 7:52 pm, Ben J. [email protected]
javascript.here ya go:
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
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 4/19/07, Peter De Berdt [email protected] wrote:
Ruby on Rails has excellent support for it.
[email protected]
without having to reload the page.
here ya go: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
–
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs