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