On Jan 6, 2011, at 2:55 PM, Mauro wrote:

On 6 January 2011 19:14, Walter Lee Davis <[email protected]> wrote:

On Jan 6, 2011, at 12:56 PM, Mauro wrote:

I've seen that railscast, I'm using chrome which support pushState.
The problem is that ajax history with paginate works but if you, for
example, go to a site www.google.it or whatever internet site and then
push browser back button the page showed isn't an html page, but it
seems a text page.
Try.



Watching that 'cast, it seemed to me that you could bookmark the resulting URL, and restore your search/pagination/whatever state just fine. I haven't tried the google.it page in this respect, but if the URL changes to show the unique address of the current state of the page, then that's the goal and the goal has been met. Back button or bookmark and new session, it should
appear the same either way.

You create a list and paginate through this using ajax just like the
railscast example.
Then go to a internet site.
Then push the browser back button and you see the page in history as
text and not as an html page.


Wow, sounds like a bug, either in the implementation of pushState by Google in their page, or by Chrome. Do you have this problem with Safari or Firefox?

Walter

--
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to