Every line of 'ajax refresh page' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
66 function refresh_page() { 67 refresh_future_events(); 68 refresh_future_summits(); 69 refresh_past_summits(); 70 }
91 function refresh() { 92 $.ajax({ 93 type: 'POST', 94 url: getPath() + '/createAllIndex', 95 success: function (data) { 96 if (data.result == 1) { 97 alert("生成索引成功!"); 98 } else { 99 alert(data.msg); 100 } 101 } 102 }); 103 }
16 doRefresh(refresher) { 17 18 setTimeout(() => { 19 refresher.complete(); 20 }, 2000); 21 }
33 $(function refresh() { 34 $.getJSON('/', function(data, textStatus, jqXHR) { 35 $('#version').text(jqXHR.getResponseHeader('X-Pult-Version')); 36 $('#domains').empty(); 37 for (var key in data) { 38 if (key == 'pult.dev') { 39 continue; 40 } else if (key == 'next') { 41 $('#next').text(data.next); 42 } else { 43 $('<a>') 44 .addClass('list-group-item') 45 .attr('href', 'http://' + key) 46 .append($('<strong>').text(key)) 47 .append($('<span>').addClass('badge').text(data[key])) 48 .appendTo('#domains'); 49 } 50 } 51 }); 52 setTimeout(refresh, 3000); 53 });</span></strong></a>
15 function change_refresh() { 16 $('#alerts').html("<div>Please wait... Refreshing data." + 17 "</div>") 18 setTimeout(function () { run_ajax(); }, 1000) 19 };
109 doRefresh(refresher): void { 110 this.reload = !this.reload; 111 setTimeout(() => { 112 refresher.complete(); 113 }, 300); 114 }
181 function refresh(){ 182 $("#refresh_btn").button('loading'); 183 184 var status; 185 var time_interval; 186 187 $('input[class="status"]').parent('label').each(function(index, element){ 188 if($(this).hasClass('active')) { 189 var idx = 2-index; 190 status = idx; 191 } 192 }); 193 $('input[class="time_interval"]').parent('label').each(function(index, element){ 194 if($(this).hasClass('active')) { 195 var idx = 2-index; 196 time_interval = idx; 197 } 198 }); 199 console.log(':::'+status+'--'+time_interval); 200 201 task_query(status, time_interval); 202 203 $("#refresh_btn").button('reset'); 204 205 }
95 function refresh() 96 { 97 $('#info').load('info', 98 function() 99 { 100 // handle async links 101 $('a.asynclink').click( 102 function (event) 103 { 104 event.preventDefault(); 105 106 var anchor = $(this); 107 $.get(anchor.attr('href'), 108 function (data) 109 { 110 refresh(); 111 } 112 ); 113 } 114 ); 115 116 } 117 ); 118 }
2 function reloadPage() { 3 var container = $("#ResourcesMonitor"); 4 jQuery.support.cors = true; 5 var aj = $.ajax({ 6 url: "/monitor/resources/html", 7 type: "GET", 8 success: function (data) { 9 container.html(data); 10 } 11 }); 12 _requests.push(aj); 13 }
101 function refresh_page(page_name) { 102 var fn = function(r, rt) { 103 render_page(page_name) 104 } 105 $c('webnotes.widgets.page.getpage', {'name':page_name, 106 stylesheets:JSON.stringify(stylesheets)}, fn); 107 }