Do you have too many div positioning window internal pagination functions?

Source: Internet
Author: User
Do you have too many div positioning window internal pagination functions? This is the case: click the Add button-> The "position 1" window is displayed (The list contains too many content and requires pagination) -> click the "select" button in the "1 p" positioning window to go to the "2 p" window (the list contains too many content and requires pagination )...
If there is only one p, js controls pagination, but the problem is that two p Windows, Windows. onload = function () {} is loaded in the browser order. it can only be valid for window 2 p, but window 1 p does not work.


Reply to discussion (solution)

You should use AJAX

It is a window. onload conflict problem. there is no good solution yet

Try ajax

Thank you .. You don't need ajax. you can modify it like this: window. onload = function () {a (); B ();} separate the content into functions a and B and then call them.

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.