Awesome universal paging display control (5) add, delete, modify records, and set categories (below)

Source: Internet
Author: User
<3> client code related to record display:
Added more control in listrecordscon. inc
<Script language = "javascript">
Var pagenum = <% = theCurrentPageNum %>;
// Triggered when you click the "select all records on this page" check box
Function CheckAll (form)
    {
For (var I = 0; I <form. elements. length; I ++)
    {
Var e = form. elements [I];
If (e. name! = 'Chkall' & e. name! = 'Challpage ')
E. checked = form. chkall. checked;
    }
    }
// Triggered when you click the "select all records of this category" check box
Function CheckAllPage (form)
{
For (var I = 0; I <form. elements. length; I ++)
    {
Var e = form. elements [I];
If (e. name! = 'Challpage ')
E. checked = form. chkallpage. checked;
    }
}
// Check whether a record is selected
Function checkbox (form)
{
Var theLength;
Var I, j;
TheLength = form. chk. length;
I = 0;
J = 0;
While (I <theLength ){
If (form. chk [I]. checked)
J ++;
I ++;
    }
If (j = 0 &&! Form. chk. checked ){
Alert ("Select record first ");
Return false;
    }
Return true;
}
// Triggered when the delete button is clicked.
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.