Response callback of dwz

Source: Internet
Author: User
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

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.