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

jQuery.load() is probably the easiest way to load data asynchronously using a selector, but you can also use any of the jquery ajax methods (get, post, getJSON, ajax, etc.)

Note that load allows you to use a selector to specify what piece of the loaded script you want to load, as in
Code:
$("#mydiv").load(location.href + " #mydiv");


Note that this technically does load the whole page and jquery removes everything but what you have selected, but that's all done internally.
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 apysan - 02-22-2017, 10:11 PM
RE: AJAX Load Content No Page Refresh - by larryhems - 09-06-2020, 11:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB