Ruby on Rails enable history in ajax calls
Refer below link
http://lindsaar.net/2008/2/21/history-buttons-with-ajax-and-ruby-on-rails
and use the code
| window.dhtmlHistory.create({ | |
| toJSON: function(o) { | |
| return JSON.stringify(o); | |
| } , fromJSON: function(s) { | |
| return JSON.parse(s); | |
| } | |
| }); |
instead of
window.dhtmlHistory.create({ toJSON: function(o) { return Object.toJSON(o); }, fromJSON: function(s) { return s.evalJSON(); } });
on that post Happy learning
Comments
Post a Comment