Navtab's refresh is also described in the doc file.
First, specify the callback function in form form.
[HTML]View PlainCopy
- * <form action="/user.do?method=save" onsubmit= "return Validatecallback (this, Navtabajaxdone) ">
- If you do not specify a callback function, the framework uses Dwz.ajaxdone () by default.
- <pre name="code" class="html">function Navtabajaxdone (JSON) {
- Dwz.ajaxdone (JSON);
- Note the data structure of the JSON that is returned
- if (Json.statuscode = = DWZ.statusCode.ok) {
- if (json.navtabid) {
- Mark the specified Navtab page as requiring "reload". Note that Navtabid cannot be the current Navtab page
- Navtab.reloadflag (Json.navtabid);
- } else {
- Reload Current Navtab page
- Navtabpagebreak ();
- }
- if ("closecurrent" = = Json.callbacktype) {
- SetTimeout (function () {Navtab.closecurrenttab ();}, 100);
- } else if ("forward" = = Json.callbacktype) {
- Navtab.reload (Json.forwardurl);
- }
- }
- }
- 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
- Of course, can also achieve partial refresh meet navtabpagebreak (); Dwzpagebreak () function description
- </Pre><p></P>
- <pre></pre>
- <p></P>
DWZ (JUI) tutorial Navtab Refresh Analysis