internet explorer 8 - jQuery window.execScript fails in ie8 -



internet explorer 8 - jQuery window.execScript fails in ie8 -

i'm using jquery 1.11.1.on page have function:

function loaddata() { $.ajax({ url: "", async: true, method: 'post', datatype: "json", data: { start: $('input[name=start]').val(), stop: $('input[name=end]').val(), week: $('#weekpicker').val(), range:$('select[name=date_control]').val(), type: 'loaddata' }, beforesend: function(xhr, opts) { if (!$('input[name=start]').val() && !$('input[name=end]').val()) { bootbox.alert('select date first!'); xhr.abort(); homecoming false; } }, success: function(dane) { ustawienia = dane.ustawienia; // code here }, error: function(dane) { $('button[name=pokaz]').removeattr('disabled'); bootbox.alert(dane.responsetext); } }); }

it work's on ie>8, ff, chrome fails on ie8...

// evaluates script in global context // workarounds based on findings jim driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globaleval: function( info ) { if ( info && jquery.trim( info ) ) { // utilize execscript on net explorer // utilize anonymous function context window // rather jquery in firefox ( window.execscript || function( info ) { var window[ "eval" ].call( window, info ); } )( info ); } }

how can prepare works ie8 also...

jquery internet-explorer-8

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -