1. First, add the 403 status in dwz. Core. js.
statusCode: {ok:200, error:300, timeout:301, forbidden:403},
2. Add the ajaxdone response logic.
ajaxDone:function(json){ if (json.statusCode === undefined && json.message === undefined) { // for iframeCallback if (alertMsg) return alertMsg.error(json); else return alert(json); } if(json.statusCode == DWZ.statusCode.error) { if(json.message && alertMsg) alertMsg.error(json.message); } else if (json.statusCode == DWZ.statusCode.timeout) { if(alertMsg) alertMsg.error(json.message || DWZ.msg("sessionTimout"), {okCall:DWZ.loadLogin}); else DWZ.loadLogin(); } else if (json.statusCode == DWZ.statusCode.forbidden) { if(alertMsg) alertMsg.error(json.message || DWZ.msg("forbidden")); else navTab.closeCurrentTab(); } else { if(json.message && alertMsg) alertMsg.correct(json.message); };},
3. Add the success response logic in $. Ajax.
If (JSON. statuscode = dwz. statuscode. forbidden) {alertmsg. error (JSON. message | dwz. MSG ("forbidden"), {okcall: function () {if ($. pdialog) $. pdialog. checktimeout (); If (navtab) navtab. checktimeout (); // close the current tab navtab. closecureretab ();}});}
4. Add the default status information in dwz. Frag. xml.
<_ MSG _ id = "forbidden"> <! [CDATA [Insufficient permissions!]> </_ MSG _>
Other reference tutorials for dwz: http://blog.csdn.net/jiweigang1/article/category/890878