简体   繁体   中英

Load a new page after another finishes loading

In my company we have a web-based tool that you enter an account, press a button, and the page takes a little bit to load, then loads account information. There are several different pages that do the same thing but load different information. I have already been able to make the sites load with direct URL execution (with an intermediate page and some javascript) so I only have to enter their account number once. My problem is, I want them to pull up all at the same time to speed things up, but there is some kind of lock that does not let you run the lookup in two pages at once. I want to make my site load the first page, then wait til it loads and immediately begin loading the next page in another tab on my page. Is that even possible in HTML and Javascript? If so how, if not, what other language do I need to learn today?

check out the jquery's $(document).ready();

simply use

$(document).ready(function () {

 //execute script that calls another page, you could use ajax 


});

other method is using iframes, which i personally don't recommend

Do you mean something like Pageflakes ?

If so, you will need to utilise AJAX (and/or webservices). A good tutorial/source code on building something like this is at DropThings (which is from the same author as PageFlakes). This is using ASP.NET C# and AJAX Control Toolkit.

如果将两个URL加载到单独的<iframe>元素中,则只需要为第一个帧创建一个load事件处理程序即可设置第二个帧的src属性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM