Jquery.datepicker, Jquery.validate, jquery.uploadify conflict resolution

Source: Internet
Author: User

Project needs, a page on the same time using the Jquery.datepicker, Jquery.validate, Jquery.uploadify, the results found in the use of uploadify and DatePicker and validate various conflicts, error is JS missing object. It's been a long time since we found a solution.

jquery file to be modified here, add the Red Word section

 /** * Determines whether an object can has data*/Jquery.acceptdata =function(elem) { var noData = jquery.nodata[(Elem.nodename + ""). toLowerCase ()], NodeType = +elem.nodetype | | 1; //Do not set data on Non-element DOM nodes because it won't be cleared (#8335). return nodeType!== 1 && nodeType!== 9? false : // Nodes accept data unless otherwise specified; rejection can be conditional!nodata | | NoData! = = true && elem.getattribute! = null && elem.getattribute ("classid") = = = NoData;}; 

Jquery.validate to comment out the following code:

$( This. Currentform). Validatedelegate (": Text, [type= ' Password '], [type= ' file '], select, textarea," + "[type= ' number '], [type= ' Search '], [type= ' Tel '], [type= ' URL '], "+" [type= ' email '], [type= ' datetime '], [type= ' Date '], [type= ' Month '], "+" [type= ' Week '], [type= ' time '], [type= ' datetime-local '], "+" [type= ' rang E '], [type= ' Color '], [type= ' Radio '], [type= ' checkbox '] ",                        "Focusin focusout KeyUp", delegate)//Support:chrome, Oldie                    //"Select" is provided as event.target when clicking a option. Validatedelegate ("Select, option, [type= ' Radio '], [type= ' checkbox ']", "click", delegate);


It's settled.

As to how much influence after the removal, but also in the test, but the project has been running for 2 months did not find what the problem, as to what the principle is not clear, check a lot of data also did not find the problem, only said uploadify very egg pain ~

Reference link http://blog.csdn.net/dyllove98/article/details/42871203

Jquery.datepicker, Jquery.validate, jquery.uploadify conflict resolution

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.