Atitit. bigconfirmtips control large data volume prompt confirm control principle and summary O9
1. Major technologies involved 1
2. Main process 1
3. Call the new confirmo9t (); 1
4. Set the backtracing event C. backhandle = "window. opener. confirmsubmitbackeventhandle"; 2
5. Set the detailed table display template C. tmplt = "/publish/lookoverdetail_templt.jsp"; 3
1. Main technologies involved
Cross-page data transfer
Cross-page transfer of JavaScript code
Server table control ..
2. Main Process
Pubx. checkoverwrite... (no detailed data session class K)
If (over)
Showconfirmwin ()
------ Confirmwin ------
Some MSG: View Details (Link)
BTN: Confirm BTN: Cancel
Author: old wow's paw attilax iron, email: [email protected]
Reprinted please indicate Source: http://blog.csdn.net/attilax
3. Call method new confirmo9t ();
VaR MP = DWR. util. getformvalues (formid );
Pubx. checkoverwrite (MP, function (data ){
If (Data = true) // start boot confirm page
{
VaR c = new confirmo9t ();
C. backhandle = "window. opener. confirmsubmitbackeventhandle ";
C. setconfmbackevt (
Function () {$ ("# publishform"). Submit ();}
);
C. tmplt = "/publish/lookoverdetail_templt.jsp ";
// Alert ("befshow ");
C. Show ();
Return;
}
// Backevent ();
});
}
/*
O9t for confirm page confirm BTN click
*/
Function confirmsubmitbackeventhandle ()
{
$ ("# Publishform"). Submit ();
}
4. Set the backtracing event C. backhandle = "window. opener. confirmsubmitbackeventhandle" after confirmation ";
C. tmplt = "/publish/lookoverdetail_templt.jsp ";
// Alert ("befshow ");
C. Show ();
5. Set the detailed table display template C. tmplt = "/publish/lookoverdetail_templt.jsp ";
Atitit. bigconfirmtips control large data volume prompt confirm control principle and summary O9