Displaying 1 result from an estimated 1 matches for "pagelistener".
Did you mean:
padlistener
2008 Feb 21
1
Using Really Simple History on Rails
...bing the response
data from the Rails app, inserting that into the history with
dhtmlHistory.add(''PageName'', xhr_response_data) and then eval that
data when my listener gets called with the back and forward buttons.
I can make this work manually by doing something like this:
var pageListener = function(newLocation, historyData) {
eval(historyData);
}
and then:
dhtmlHistory.add(''home'', ''alert("We Are Home")'');
Then hit the back and forward buttons and I get an alert box.
So, how can I capture the XHR response from the rails app and wha...