10 examples of 'div refresh in jquery' in JavaScript

Every line of 'div refresh in jquery' 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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
25function refresh(id) {
26 if(id !== "avascript:void(0)") {
27 var iframeSelectName = "#" + id + " iframe"
28 $(iframeSelectName).attr('src', $(iframeSelectName).attr('src'));
29 }
30}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

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});
470setTimeout(function refresh() {
471 $("#block").fadeOut("slow");
472}, 1000);
46refresh() {
47 if (!this.shadowRoot) {
48 return;
49 }
50 if ((!this.shadowRoot.querySelector('svg')) || (!this.shadowRoot.querySelector('slot'))) {
51 return;
52 }
53 setTimeout(() => this.redraw(), 100);
54}
6function auto_refresh(){
7 var element = $(".auto-refresh");
8 clearTimeout(refresh_timeout);
9
10 if (element[0]) {
11 refresh_timeout = setTimeout(function(){
12 var autoRefreshIsOn = $(".auto-refresh").hasClass("on");
13 var hasFocus = tfm.document.doesDocumentHasFocus();
14
15 if (autoRefreshIsOn && hasFocus) {
16 Turbolinks.visit(window.location.href);
17 }
18 }, 60000);
19 }
20}
131function refresh(element) {
132 const url = window.location.href;
133 let match;
134 if (element.areaLink) {
135 // Match prefix
136 let prefix = element.href;
137 // If prefix doesn't end in slash, add a slash.
138 // We want to avoid matching in the middle of a folder name.
139 if (prefix.length < url.length && prefix.substr(-1) !== '/') {
140 prefix += '/';
141 }
142 match = (url.substr(0, prefix.length) === prefix);
143 } else {
144 // Match whole path
145 match = (url === element.href);
146 }
147 element.current = match;
148}
10function refresh() {
11 frame = document.getElementsByName( 'psoread' )[0];
12 frame.contentWindow.location.reload()
13}
15function change_refresh() {
16 $('#alerts').html("<div class='small alert alert-info alert-dismissible fade show' role='alert'>Please wait... Refreshing data." +
17 "</div>")
18 setTimeout(function () { run_ajax(); }, 1000)
19};
91function 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}
181function 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}

Related snippets