5-minute automatic refresh of a layer

Source: Internet
Author: User
Title, just want to refresh this layer, 5 minutes to refresh, this how to achieve, is not to use JS to achieve, code? Thank you!


Reply to discussion (solution)

The great gods, help!

Baidu's JS frame qwrap or jquery and so on. Every five minutes to an Ajax

Baidu's JS frame qwrap or jquery and so on. Every five minutes to an Ajax
Please give the detailed code

SetInterval () Take a look at the use of this function

Or do not come out, how to do ah?

5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!

You have to learn something, or else not.

You have to learn something, or else not.
Give me some advice! To learn those aspects?

5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK


5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK
Ajax I will not oh, do you have the code?



5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK
Ajax I will not oh, do you have the code?
No, you know what, Mom? Do you know Google?




5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK
Ajax I will not oh, do you have the code?
No, you know what, Mom? Do you know Google?
This understanding





5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK
Ajax I will not oh, do you have the code?
No, you know what, Mom? Do you know Google?
This understanding
If you understand, do it.






5 minutes automatic refresh a layer is very difficult, if the whole page is refreshed very simple, the great God taught me Ah!
Refresh a layer, just use the timer Ajax to query the data, and then assign a value based on the ID of the layer is OK
Ajax I will not oh, do you have the code?
No, you know what, Mom? Do you know Google?
This understanding
If you understand, do it.
Or not?

Look at the following example
Http://www.w3school.com.cn/htmldom/met_win_setinterval.asp

LZ main asks Ajax asynchronous execution

Refresh Page Section

1. JS Timer
2, the implementation of AJAX requests to the background of the specific use of XMLHttpRequest this is the core of Ajax, a function set can make a request to the background and return the results
3, according to the results returned by XMLHttpRequest, with JS to perform the specific operation

Page part timed refresh, the key is Ajax

If you do not need to return the background data = = Direct JS timer, update the specified div content on the line, the content is JS front-end generated (date or something)

SetInterval () plus load () function, 5 seconds load () this layer once

Why can't I write it? I'm too much food!

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.