Recently, more and more people feel the superiority of JS. The method for refreshing the framework page is used in the project, and many good results are found after searching on the Internet.Code, But not very complete. As a result, I simply collected data from the network and sorted it out after careful arrangement. ^-^ Hope you can give me more advice!
Let's look at a simple example:The following example uses the three pages separated by frame.ht
The following example uses the three pages separated by frame.html?top.html?bottom.html to describe how to do this.
Frame.html consists of two pages (bottom (bottom.html) under top.html,CodeAs follows:
"-// W3C // dtd html 4.0 transitional // en">
"50%, 50%">
"Top.html">
"Bottom.html">
Now, let's assume that top.html (the page above) has seven buttoners to refresh
Reprinted blog: http://www.jb51.net/article/14397.htmHow do I refresh the current page? With JS you will be omnipotent.The 1,reload method, which forces the browser to refresh the current page.Syntax: Location.reload ([Bforceget])Parameters: Bforceget, optional parameter, default is False, the current page is taken fro
B. php code
// Access only through postIf ($ _ SERVER ['request _ method'] = 'get '){Header ('HTTP/1.1 404 Not Found '); die ('parent, the page does Not exist ');}Session_start ();$ Fs1 = $ _ POST ['a'];$ Fs2 = $ _ POST ['B'];// Anti-Refresh time, in seconds$ AllowTime = 30;// Read the visitor's ip address to facilitate refresh of ip address restrictions/* Start
Requirement Description: The approval form page is opened in my to-do list. After completing the process, I want to close the page and refresh the to-do form in real time; at the same time, this requirement also applies to situations where approval needs to be initiated from some workflow management modules, such as the recruitment process in the recruitment dema
1.reload method that forces the browser to refresh the current pageSyntax: Location.reload ([Bforceget])Parameters: Bforceget, optional parameter, default is false from the client cache to fetch the current page. True, gets the latest page from the server in Get mode, equivalent to the client clicking F5 ("Refresh")Exa
the reload method, which forces the browser to refresh the current page. Syntax: Location.reload ([bforceget]) parameter: bforceget, optional parameter, default =falseTo fetch the current page from the client cache.true, the latest page from the server is taken as a GET, which is equivalent to the client clicking F5 ("
JavaScript refreshes the page in several ways:1 history.go (0)2 Location.reload ()3 location=location4 Location.assign (location)5 Document.execcommand (' Refresh ')6 Window.navigate (location)7 Location.replace (location)8 document. Url=location.href.____________________________________________Frames page: (One of the sub-pages in a frames
There are quite a few ways. Previously more commonly used is the IFRAME to do so. Now there is an Ajax, so the general situation is to use Ajax.
The first approach, AJAX implementations:Of course, Ajax is actually very simple to implement, but a lot of knowledge is still relatively deep. I used to do the page time automatically refresh the function is to use the Ajax. The complete code is:
1.gettime.php:
Specific how we implement the file asynchronous refresh, the current online has a lot of articles to solve this problem, but will use a lot of JavaScript, because I am still light coding skills, so there is no HD of the reason why, but in the solution they seem to have used the IFRAME, This gives me an epiphany, so I'm going to talk about using this as a way to refresh.
First of all, a real
In writing ASP.net program, we often encounter the problem of the jump page, we often use Response.Redirect, if the customer wants to jump in the use of tips, this is not a good idea, such as:Response.Write ("Then we use the following code to test the ASP.net page refresh:Response.Write ("The most important thing is that the WINDOW.LOCATION.HREF statement can implement a frame of the
Ways to automatically refresh pages:1. Page Automatic refresh: Add the following code to the
The code is as follows
Copy Code
20 of which means that the page is refreshed every 20 seconds.
2. Page Automatic Jump: Add the following co
We know that InnoDB uses the write Ahead log policy to prevent the loss of downtime data, that is, when a transaction commits, the redo log is written, and then the memory data page is modified, resulting in dirty pages. Now that you have redo logs to ensure data persistence, you can also fetch data directly from the buffer pool page when querying, why refresh th
How to use PHP to constantly refresh the content of a small div in the page? Idea: When creating a business system, there is a small code at the top of the page after the salesperson charges: lt; div nbsp; id = 'Money' gt; lt ;? = Getmoney ($ _ SESSION [user_id])? Gt; meta lt;/div gt; getmoney ($ How to use PHP to constantly
Resolve | control | refresh | page
With the Ajax.NET BETA 2 released today, let us see the Ajax and asp.net2.0 close combination of fast and efficient, we can even do not need to write a JS code can let the asp.net of the page to get the past to spend hours to write the JS code to achieve no refresh effect. It is also
Timed refresh:
1,
Description: URL is the page URL address to refresh
2000 is the wait time = 2 seconds,
2,
Description
n is the number of seconds to wait before loading the specified URL.
URL is a absolute URL to be loaded.
N, is the time to wait, in seconds
URL is the URL address of the page to be refreshed
3,
Not
There are data controls that, after each change to its value, requery the database and then re-display it. So each time will refresh all the pages, if it is a lot of information is very large page, there will be a lag phenomenon, in order to avoid this situation, the use of local refresh. The controls used are: ScriptManager and UpdatePanel inside the Ajax extens
"Turn": http://zccst.iteye.com/blog/2162658The reload method, which forces the browser to refresh the current page.Syntax: Location.reload ([Bforceget])Parameters: Bforceget, optional parameter, default is False, the current page is taken from the client cache. True, the latest page from the server is taken as a GET, equivalent to the client clicking F5 ("
The 1,reload method, which forces the browser to refresh the current page.Syntax: Location.reload ([Bforceget])Parameters: Bforceget, optional parameter, default is False, the current page is taken from the client cache. True, the latest page from the server is taken as a GET, equivalent to the client clicking F5 ("Refresh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.