1. Configure url rewrite in Nginx to support XCAP's http url request
2. Provide data verification function for adding and modifying operations on the page
3. Modify the selection problem of omTree after loading
Actual :
1. Complete
2. Employee data verification
Name, gender, job number, department, job
number Unique
email format
Mobile phone number: number, length 11
sip URI: No verification
extension: number length (1~31) The entire address book is unique to the
enterprise network Number: Number (1~31) Unique verification of enterprise internal data
3. Completed
Department data:
Name is required
Gain :
1. In Nginx, you can redirect the url of the specified request, using rewrite
to use the url in XCAP Redirection:
add --- in the server of nginx.conf
if ($request_uri ~* /abms/address*) { rewrite /(.*) http://$server-addr:$server_port/abms/cgi-bin/xcapServer.php; }
In this way, when the client sends something like: http://ip:port/webapp/address-book/users/petri/adbook1/address-book...
, it will be redirected to webapp/cgi-bin/xcapServer.php, So that the request can be processed
2. If the scroll bar is scrolled to the specified place in the pop-up window?
$("html,body").animate({scrollTop:$("#qy_name").offset().top},1000);
When adding employees, let the scroll bar in the pop-up window scroll to the position where the current department can be displayed Code:
$("#selectDept_mytree").animate({scrollTop:$(".selected", dialog_tree).offset().top},1000);
3. The validator is used to verify the data of the form. If it is sent to the background for verification in the form of ajax, the async in the ajax must be set to false, otherwise the return of the verification result and the prompt information cannot guarantee the order.