Callback in the pop-up box: onsubmit = "Return validatecallback (this, dialogajaxdone);", verification + callback. If this parameter is left blank, the submission is successful, but the verification form and callback dialogajaxdone are not provided, to close the dialog box, the returned JSON must contain callbacktype: closecurrent, callbacktype value: closecurrent (close current tab or dialog), and forward (you must specify forwardurl ), dialogajaxdone also uses custom callback.
In the status code, "200" indicates success, "300" indicates error, and "301" indicates Session Timeout. When you click "dwz. loginurl" next time.
Response Return Value format:
{"Statuscode": "200", "message": "operation successful", "navtabid": "", "rel": "", "callbacktype": "closecurrent ", "forwardurl ":""}
If navtabid exists, the URL corresponding to this navtabid will be reloaded,
The rel here refers to the ID of the DIV to be reloaded. The default is to refresh the current navtab. If you want to refresh a div after a dynamic execution, you must specify rel here.
If you have any questions, please refer to the source code.
Function navtabajaxdone (JSON) {dwz. ajaxdone (JSON); If (JSON. statuscode = dwz. statuscode. OK) {If (JSON. navtabid) {// mark the specified navtab page as "reload ". Note that navtabid cannot be the navtab of the current navtab page. reloadflag (JSON. navtabid);} else {// reload the navtabpagebreak ();} If ("closecurrent" = JSON. callbacktype) {setTimeout (function () {navtab. closecurspontab () ;}, 100) ;}else if ("Forward" = JSON. callbacktype) {navtab. reload (JSON. forwardurl );}}}
Flip: onchange = "navtabpagebreak ({'numperpage': This. value}, 'coinsmgr-jbsxbox ') "specifies the DIV of coinsmgr-jbsxbox if the default navtab is not specified. at the same time
<div class="pagination" rel="coinsmgr-jbsxBox" totalCount="${recordCount}" numPerPage="${pageSize}" pageNumShown="10" currentPage="${pageNumber}"></div>
Specify rel = "coinsmgr-jbsxbox", navtab is not specified.
Onsubmit = "Return navtabsearch (this);" dialog box onsubmit ="
ReturnDialogsearch (
This) "If navtabsearch (this) is not added, it can also be executed, but there is no style.
For Div type,
Response callback of dwz