Every line of 'javascript load new 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.
74 function load_page(pageUrl) { 75 $(".layui-body").load(pageUrl); 76 }
13 function loadPage() { 14 if (document.location.hash == "#alljobs") { 15 document.location.hash = ""; 16 return; 17 } 18 /* check if job parameter exists */ 19 var job = getParameter("job"); 20 if (job && job.length > 0) { 21 var sp = job.split(':'); 22 if (sp.length == 2 && jobs[sp[1]] && jobs[sp[1]] != "") { 23 /* check if job exists */ 24 if (jobs[sp[1]][sp[0]] && jobs[sp[1]][sp[0]] != "") { 25 document.location.href = "index.jsp?content="+jobs[sp[1]][sp[0]]; 26 } else { 27 /* tell the user the job isn't open anymore */ 28 document.write("<h2>We're sorry, but it appears the position for " + sp[0] + " in group " + sp[1] + " is not open anymore</h2>"); 29 } 30 } 31 } 32 }
5 function load(pageId, isFirst) { 6 $('.spa-page').css('z-index', 2015); 7 if (isFirst) { 8 require(['../pages/' + pageId + '/index'], function(mod) { 9 mod.render(); 10 mod.init(); 11 }); 12 } else { 13 require(['../pages/' + pageId + '/index'], function(mod) { 14 $('.spa-page').css('z-index', 2015); 15 let cl = '#' + pageId; 16 $(cl).css('z-index', 2016); 17 mod.init(); 18 }); 19 } 20 21 }
20 function doPageLoad() { 21 if (!window.localStorage) { 22 prependContent("output", "window.localStorage API not supported<br />"); 23 document.getElementById("localRadio").setAttribute("disabled", "true"); 24 } 25 displayStorage(); 26 }
70 function openPage(page) { 71 var actual_sort = $('#actual_sort').text(); 72 alert 73 showMovies(actual_sort, page, ''); 74 }
100 function loadPage(url, pageName, trans) { 101 $("#pages #" + pageName).load(url + "?" + new Date().getTime() + " .wrapper", function(){ 102 $("body").attr("className", "page-" + pageName); 103 transition(this, trans || "show", false); 104 }); 105 };
120 function onPageLoad() 121 { 122 let ob = {}; 123 ob.action = "filelist"; 124 ob.folder = "."; 125 httpPost("/ajax", JSON.stringify(ob), cb); 126 }
58 function openPage(s) { 59 url.newUrl().setPage(s) 60 loadIndexUrl() 61 }
121 async function load() { 122 if (frame.url === url) { 123 await page.send('Page.reload', {}); 124 } else { 125 await page.send('Page.navigate', { url }); 126 } 127 }
340 async load(uri = '', ...params) { 341 debugApp('Load page', uri); 342 this.loadURI_ = uri; 343 this.loadParams_ = params; 344 await this.initializeInterception_(); 345 debugApp('Navigating the page to', this.loadURI_); 346 347 const result = new Promise(f => this.domContentLoadedCallback_ = f); 348 // Await here to process exceptions. 349 await this.page_.goto(new URL(this.loadURI_, 'https://domain/').toString(), {timeout: 0, waitFor: 'domcontentloaded'}); 350 // Available in Chrome M73+. 351 this.session_.send('Page.resetNavigationHistory').catch(e => {}); 352 // Make sure domContentLoaded callback is processed before we return. 353 // That indirection is here to handle debug-related reloads we did not call for. 354 return result; 355 }