load page without refresh javascript code example
Example 1: ajax data not reflecting after refresh particular div jquery
$(document).ready(function() {
$.ajaxSetup({ cache: false });
setInterval(function() {
$('#loaddiv').load('teste.asp');
}, 1000);
});
Example 2: javascript reload page without refresh
<a href="javascript:window.top.location.reload(true)" class="continue">Continue</a>
Example 3: update html page without refresh
$(function(){
$.ajaxSetup ({
cache: false
});
var ajax_load = "<img src='http://automobiles.honda.com/images/current-offers/small-loading.gif' alt='loading...' />";
var loadUrl = "http://fiddle.jshell.net/deborah/pkmvD/show/";
$("#loadbasic").click(function(){
$("#result").html(ajax_load).load(loadUrl);
});
});