codignighter ajax history |
Hi all first of all let me wish your all a great year.
I have a problem i have a main html page with a <div id="upt-contents"></div> When a user clicks a button or link it calls a function in my controller that fetches a partial view and places it in the div mentioned above via ajax. my whole site works like this. Let me also mention that my url is always the same http://mysite/dashboard also All ajax calls go throught the routes $route['mypage'] = 'mycontroller/mypage'; This all works well but my browser history, back, forward obviously doesn't work. does anyone have an idea how i can do this and impliment browser history as well. thanks in advance This is my javascript code for load pages: Code: $("body").on("click", "[data-page]", function (e) { |
Messages In This Thread |
codignighter ajax history - by Marcel - 01-09-2017, 01:14 AM
RE: codignighter ajax history - by ivantcholakov - 01-09-2017, 02:24 AM
RE: codignighter ajax history - by Marcel - 01-09-2017, 02:28 AM
RE: codignighter ajax history - by spjonez - 01-09-2017, 06:49 AM
RE: codignighter ajax history - by skunkbad - 01-09-2017, 04:43 PM
RE: codignighter ajax history - by Marcel - 01-11-2017, 05:55 AM
|