My application is designed such that when a user clicks on a document, a new Ajax box opens up. This is convenient in that it does not force reload of an entire page. However, it comes to this problem -- when a user wants to bookmark or share that link, they do not have the URL to save. I conveninently provide a direct URL link to the document, but most of my users never seem to notice, and always copy URL at the top of their browser. Is there a way to deal with this? For example, can I change the URL at the top of their browser when they click on a document? -- 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 -~----------~----~----~----~------~----~------~--~---
My guess would be that you need to make the whole browser window load the page. What if you made the link load the whole page (which would still visually look like the old page), but it then pops up the document? That way the url would represent the right way to access the document. Sometimes Ajax isn''t the best option if you want your address bar to maintain the state of your application. Cheers, Brendon On Feb 26, 6:31 pm, E-minenz Dot com <rails-mailing-l...@andreas- s.net> wrote:> My application is designed such that when a user clicks on a document, a > new Ajax box opens up. This is convenient in that it does not force > reload of an entire page. > > However, it comes to this problem -- when a user wants to bookmark or > share that link, they do not have the URL to save. I conveninently > provide a direct URL link to the document, but most of my users never > seem to notice, and always copy URL at the top of their browser. > > Is there a way to deal with this? For example, can I change the URL at > the top of their browser when they click on a document? > > -- > 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 -~----------~----~----~----~------~----~------~--~---
On 26 Feb 2007, at 07:05, Brendon wrote:> My guess would be that you need to make the whole browser window load > the page. What if you made the link load the whole page (which would > still visually look like the old page), but it then pops up the > document? That way the url would represent the right way to access the > document. > > Sometimes Ajax isn''t the best option if you want your address bar to > maintain the state of your application.... or you can implement StateManager to change the URL on your ajax call: http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps 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 -~----------~----~----~----~------~----~------~--~---