-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultipleSearch throws javascript error when prototype.js present #50
Comments
Hello, |
OK I think I have picked up the change, but I am still getting the error. In fact it is a little worse because before it did actually issue the xmlhttprequest when I pressed "Find" even though it threw the javascript error. Now it is still throwing the error but no request is being submitted. Can you point me at the line of code that changed so I can be sure I have the correct version. It says v1.2.9 at the top. |
Ahh, I found the change: I have ensured that is in place and my last post is now inaccurate. The "Find" button does submit the request and no errors are thrown. However, the previously reported error is still thrown if you click the "Reset" button or if you click the plus or minus to add/remove search criteria. I guess, therefore, a similar fix is required elsewhere? |
Not sure if this helps, put the error is thrown on the mouseover and click events for the "div.ui-add" element - seemingly when it does "newrow.find("select[name='field']").change();" |
Hello, Also there are a lot of other changes maybe. Also the error appear when we try to change the field name. Thanks again |
Thanks for confirming the problem. I have had to bite the bullet and spent yesterday removing all trace of prototype.js from our application (I have retained useful stuff like Class.create() but eradicated the stuff causing the conflict). Most of it consisted of painstaking find/replace :-) This did highlight another problem when Rico.js is present. This extends Array and I found that after the serializeGridData event I had piles of unwanted junk appended to the ajax request postData. Although I was able to parse this out in my own function in serializeGridData I did a dboule fix and removed the Rico array extension functions lso (not needed for us). Thanks |
I have an application with used both prototype.js and jquery. I have"$j = jQuery.noConflict();" to prevent any conflicts. All aspects of jQuery and jqGrid work perfectly with one notable exception. If you bring up the multiplesearch dialog and click "find" or "reset" an error is thrown:
"this._each is not a function" on line 617 of prototype.js version 1.6.0.3 on line 617.
So somehow we have managed to get diverted into the prototype.js code while processing the reset or find functionality.
I have installed jqGrid version 3.7.1 because it mentions fixes for compatibility with other JS libs but sadly this problem persists. I would like to remove prototype.js but at the moment it is not practical since there is far too much code still relying on it.
Hopefully you would be able to repeat this error just by including prototype.js and using the "noConflict" function as I have done.
The text was updated successfully, but these errors were encountered: