Hi Infragistics,I am getting some weird javascript errors. The first one does not break the code but I am interested in why it is thrown and the second breaks the code hard. The problems started occuring when I was trying to upgrade to jquery 1.9.1 or higher.First some system information:Infragistics.Web.ClientUI 14.1.20141.1020jquery 1.9.1First Error:On every page that loads infragistics.core.js I get the following error message.Error: "unsupported pseudo: jqmData"This comes from: infragistics.core.js anonymous function $(":jqmData(role='page')").live("pageshow",_find) line 274Call stack:> Sizzle.error [jquery-1.9.1.js] Line 4421 Script Sizzle.selectors.filter.PSEUDO [jquery-1.9.1.js] Line 4775 Script matcherFromTokens [jquery-1.9.1.js] Line 5294 Script Sizzle.compile [jquery-1.9.1.js] Line 5435 Script select [jquery-1.9.1.js] Line 5513 Script Sizzle [jquery-1.9.1.js] Line 3998 Script find [jquery-1.9.1.js] Line 5576 Script jQuery.prototype.init [jquery-1.9.1.js] Line 196 Script jQuery [jquery-1.9.1.js] Line 62 Script Anonymous function [infragistics.core.js] Line 274 Script Global code [infragistics.core.js] Line 274 ScriptSecond Error:Then when initializing and binding data to the grid with data from a date intervall I get the folloing error."Syntax error, unrecognized expression: '#DataViewer.aspx/GetViewData?viewid=28&from=2010-07-25&to=2014-07-25&selection=%7B%7D'Call stack:> Sizzle.error [jquery-1.9.1.js] Line 4421 Script tokenize [jquery-1.9.1.js] Line 5073 Script select [jquery-1.9.1.js] Line 5460 Script Sizzle [jquery-1.9.1.js] Line 3998 Script find [jquery-1.9.1.js] Line 5576 Script jQuery.prototype.init [jquery-1.9.1.js] Line 196 Script jQuery [jquery-1.9.1.js] Line 62 Script analyzeDataSource [infragistics.core.js] Line 234 Script init [infragistics.core.js] Line 234 Script Class [infragistics.core.js] Line 207 Script _setupDataSource [infragistics.lob.js] Line 106 Script Anonymous function [jquery-ui-1.10.1.js] Line 406 Script dataBind [infragistics.lob.js] Line 105 Script Anonymous function [jquery-ui-1.10.1.js] Line 406 Script _create [infragistics.lob.js] Line 105 Script Anonymous function [jquery-ui-1.10.1.js] Line 406 Script $.Widget.prototype._createWidget [jquery-ui-1.10.1.js] Line 565 Script $.Widget.prototype._createWidget [infragistics.core.js] Line 208 Script _createWidget [infragistics.lob.js] Line 105 Script Anonymous function [jquery-ui-1.10.1.js] Line 406 Script $[namespace][name] [jquery-ui-1.10.1.js] Line 367 Script Anonymous function [jquery-ui-1.10.1.js] Line 512 Script each [jquery-1.9.1.js] Line 648 Script jQuery.prototype.each [jquery-1.9.1.js] Line 270 Script $.fn[name] [jquery-ui-1.10.1.js] Line 507 Script dataBind [AnalyticsViewer.js] Line 252 Script success [AnalyticsViewer.js] Line 180 Script fire [jquery-1.9.1.js] Line 1037 Script self.fireWith [jquery-1.9.1.js] Line 1148 Script done [jquery-1.9.1.js] Line 8074 Script callback [jquery-1.9.1.js] Line 8598 Script Any ideas on why this breaks with jquery 1.9.1 but not with 1.7.2? Thanks!
Hello Fred,
Thank you for contacting Infragistics!
We received your support request concerning javascript errors when binding to the igGrid, and I have been assigned to help you with this issue. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your post and I will be doing further research on these errors. I will get back to you by the end of the day Monday with more information or questions for you.
After looking through the information you provided, I believe I have found the source of the first error. The jQuery .live() is deprecated in the newer versions. Please replace .live() with the .on() function. We are aware that .live() appears in our documentation and are working to get that fixed. As for the second error, I could not tell by simply looking at the error. Would it be possible to send me a small, isolated sample demonstrating this error? This would allow me to debug the issue faster, and ultimately get your sample back up and running. Please let me know if this would be a possibility.
Hi Joe,
I have debugged the code a bit more and the part that jQuery1.9.1 eventually complains about is the data source query string. The data is bound in the following piece of code, where the selection part in the query string is just some special selection arguments that get encoded.
// create the query string var gridDataSource = "DataViewer.aspx/GetViewData?viewid=" + currentViewInfo.id + "&from=" + currentViewInfo.from + "&to=" + currentViewInfo.to + "&selection=" + encodeURIComponent(JSON.stringify(selectionParameter));
An exmaple query string is '#DataViewer.aspx/GetViewData?viewid=28&from=2010-07-25&to=2014-07-25&selection=%7B%7D'. JQuery crashes when it runs the following code 'return ( context || rootjQuery ).find( selector );' (in jquery-1.9.1.js line 196) where it takes the gridDataSource (data source query string) as the selector for the rootjQuery element (context is undefined). // bind the grid $("#dataGrid").igGrid({ dataSource: gridDataSource, autoGenerateColumns: true, localSchemaTransform: false, responseDataKey: "data", defaultColumnWidth: "150px", width: "100%", features: gridFeatures, columnsgenerated: generateColumns, dataRendering: dataRendering, dataRendered: dataRendered, rendered: function() { if (currentViewInfo.sorts.length > 0) { $("#dataGrid").igGridSorting("sortColumn", currentViewInfo.sorts[0].fieldName, currentViewInfo.sorts[0].dir + "ending"); } if (currentViewInfo.filters.length > 0) { $("#dataGrid").igGridFiltering("filter", currentViewInfo.filters); } } });
Is there anything else I can assist you with on the matter? Please do not hesitate to contact me with more questions.
Would it be possible for you to provide a small, isolated sample showing this issue? Although you gave a good description of the issue you are having, I will not be able to find the root of this issue without being able to debug the code. Please let me know if this is possible. Thank you, and I look forward to hearing back from you