Welcome Guest, Not a member yet? Register   Sign In
AJAX Load Content No Page Refresh
#5

(This post was last modified: 02-22-2017, 12:19 PM by spjonez.)

The basic idea is to make take your anchor link and send the URL through $.ajax, return the response (view) as a key in a JSON blob, then replace the HTML in a container with your new fragment. This assumes your initial page load has all the required assets (CSS, JS) and you'll have to bind any plugins you use manually after you've replaced the content.

One of these days I'll update my Cinder repo which does all of this for you. Our internal build is stable but I haven't had a chance to back port the changes to the generic version.
Reply


Messages In This Thread
AJAX Load Content No Page Refresh - by apysan - 02-18-2017, 06:23 AM
RE: AJAX Load Content No Page Refresh - by apysan - 02-22-2017, 02:00 AM
RE: AJAX Load Content No Page Refresh - by spjonez - 02-22-2017, 12:14 PM
RE: AJAX Load Content No Page Refresh - by apysan - 02-22-2017, 10:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB