search for: xhr_response_data

Displaying 1 result from an estimated 1 matches for "xhr_response_data".

2008 Feb 21
1
Using Really Simple History on Rails
...ontent up etc, but I am a bit lost on how to capture the XHR response data from the Rails app to insert into the history. My understanding would be to have some way of grabbing 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'', ''aler...