DWZ (JUI) tutorial Navtab Refresh Analysis

Source: Internet
Author: User

Navtab's refresh is also described in the doc file.

First, specify the callback function in form form.

[HTML]View PlainCopy
  1. * <form action="/user.do?method=save" onsubmit= "return Validatecallback (this, Navtabajaxdone) ">
  2. If you do not specify a callback function, the framework uses Dwz.ajaxdone () by default.
  3. <pre name="code" class="html">function Navtabajaxdone (JSON) {
  4. Dwz.ajaxdone (JSON);
  5. Note the data structure of the JSON that is returned
  6. if (Json.statuscode = = DWZ.statusCode.ok) {
  7. if (json.navtabid) {
  8. Mark the specified Navtab page as requiring "reload". Note that Navtabid cannot be the current Navtab page
  9. Navtab.reloadflag (Json.navtabid);
  10. } else {
  11. Reload Current Navtab page
  12. Navtabpagebreak ();
  13. }
  14. if ("closecurrent" = = Json.callbacktype) {
  15. SetTimeout (function () {Navtab.closecurrenttab ();}, 100);
  16. } else if ("forward" = = Json.callbacktype) {
  17. Navtab.reload (Json.forwardurl);
  18. }
  19. }
  20. }
  21. The callback function of the framework is used on Dialog,navtab if there is a special need to write an AJAX implementation in the callback function using Navtabpagebreak (); You can refresh the current Navtab
  22. Of course, can also achieve partial refresh meet navtabpagebreak (); Dwzpagebreak () function description
  23. </Pre><p></P>
  24. <pre></pre>
  25. <p></P>

DWZ (JUI) tutorial Navtab Refresh Analysis

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.