javascript - IE8 giving very wierd error -


this error receiving,

webpage error details  user agent: mozilla/4.0 (compatible; msie 8.0; windows nt 5.2; trident/4.0; .net clr 1.1.4322; .net clr 2.0.50727; .net clr 3.0.4506.2152; .net clr 3.5.30729) timestamp: mon, 9 may 2016 09:54:15 utc message: 'key' null or not object line: 2031 char: 9 code: 0 uri: https://www.example.com/scripts/odata-query-builder.js 

this js file microsoft using,

https://odatasamples.codeplex.com/sourcecontrol/latest#tools/odataquerybuilder/scripts/odata-query-builder.js

line: 2031 looks me,

$.each(options, function (index, e) { line 2031:        var $option = $('<option />', { value: e.key, text: e.value });      if (typeof e.type !== 'undefined' && e.type == 'navigationproperty') {         $option.addclass('navigationdropdown');     }      $option.appendto(select); }); 

update

i using jquery 1.9.1 2.0.0 not supported ie8

update 2

to make things move forward added bit options,

if(e){ rest of code here... } 

but getting error on line 477, char 9

  odata.read({ requesturi: this.getodataurl() + '$metadata' }, 


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -