Paging refresh after Ajax background interaction DWZ AJAX:DWZ

Source: Internet
Author: User
Tags add interface return

Several previous projects, using the DWZ UI framework as a management background of the interface, think it is good. Personally feel a little regret is that the overall sense of the framework is not entrepreneurial, lack of stable feeling.
In the development process, encountered a number of problems, here to share with you.
DWZ version: DWZ RIA 1.3 Final
Explanation: Because before some custom, is directly will dwz.min.js to Dwz.newgxu.js, this does to the entire frame modification is too big, causes the later renewal and the maintenance various inconvenience. Therefore, the modification is now carried out in an overlay manner.

Problem Description:
In some paging nav, the server returns JSON after Ajaxtodo or pop-up dialog validatecallback:
{"StatusCode": "Message": "Permission deletion succeeded", "Navtabid": "Permission_list", "rel": "", "Callbacktype": "", "Forwardurl": " Permission/list "}
Here, the entire NAV will be refreshed, but all we want is to refresh the current page.

Here are some amendments to this question.

First of all, DWZ and the background of the form of intersection:

1. Through
Click here to post the request in the background, the address is the value of href, Ajax callback function by default is
Navtabajaxdone

2. Through target= "dialog"
If you add a new user, pop the input interface in a dialog way, and write:
Rel= "Rank_create" fresh= "false" > Add user

Pop-up content:
"Return to Validatecallback (this, dialogajaxdone);" >

After submitting this form, the callback function is Dialogajaxdone.


Tell me again. DWZ Paging Implementation:


action= "Permission/list" method= "get" onsubmit= "return Navtabsearch (this);" >








cellspacing= "0" bordercolor= "#999999" style= "Border-collapse:collapse" > This article links http://www.cxybl.com/html/wyzz/JavaScript_Ajax/20130708/38983.html
Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

11.11 Big Sale for Cloud

Get Unbeatable Offers with up to 90% Off,Oct.24-Nov.13 (UTC+8)

Get It Now >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.