ajax浏览器操作发生异常,当IE浏览器通过AJAX调用页面时Highcharts崩溃 |
您所在的位置:网站首页 › ajax操作发生异常 › ajax浏览器操作发生异常,当IE浏览器通过AJAX调用页面时Highcharts崩溃 |
我似乎遇到了IE浏览器通过AJAX加载页面的问题。我们使用jQuery,Bootstrap,Select2和Highcharts,并且不确定它是由Select2 ajax调用引起的问题,但是没有结果的代码在AJAX返回时似乎很好。 即时得到一个jQuery异常时,有没有highcharts它似乎是罚款这样的IM不知道在哪里的问题是...当IE浏览器通过AJAX调用页面时Highcharts崩溃 - jQuery出现异常 $(document).ready(function() { $('#country').select2(); $('#keyword').select2(); $('#device').select2(); //$('#keyword').select2('val', 'NULL').select2('disable'); //$('#device').select2('val', 'NULL').select2('disable'); $('#app').select2({ minimumInputLength: 0, placeholder: { title: "Select your app...", id: "" }, ajax: { url: 'http://dev.adtrafik.com/static/t/ajax.php', dataType: 'json', data: function (term, page) { return { term: term, // search term page_limit: 10, }; }, results: function (data) { return { results: data }; } }, initSelection: function (element, callback) { return $.getJSON('http://dev.adtrafik.com/static/t/ajax/select2_sample.php?post=3&id=' + (element.val()), null, function (data) { return callback(data); }); } }); $('#app').select2('data', { id: '48', text: 'Free Poker by PokerStars' })//.select2('disable') $('#country').change(function() { var id = $('#country').val(); var dataString = 'post=1&id1=' + id; $.ajax({ type: 'GET', url: 'http://dev.adtrafik.com/static/t/ajax.php', data: dataString, cache: false, success: function (html) { //$('#device').select2('enable'); $('#device').html(html); $('#keyword').html(''); } }); }); $('#device').change(function() { var id = $('#country').val(); var id2 = $('#device').val(); var dataString = 'post=2&id1=' + id + '&id2=' + id2; $.ajax({ type: 'GET', url: 'http://dev.adtrafik.com/static/t/ajax.php', data: dataString, cache: false, success: function (html) { //$('#keyword').select2('enable'); $('#keyword').html(html); } }); }); $('#keyword').change(function() { // $('#app').select2('enable'); }); $('#go').click(function (event) { var id = $('#country').val(); var id2 = $('#device').val(); var id3 = $('#keyword').val(); var id4 = $('#app').val(); var dataString = 'post=4®ionid=' + id + '&engineid=' + id2 + '&kwid=' + id3 + '&appid=' + id4; $.ajax({ type: 'GET', url: 'http://dev.adtrafik.com/static/t/ajax.php', data: dataString, cache: false, success: function (html) { $('#chart').fadeOut(function() { $('#chart').html(html).fadeIn(); }); } }); event.preventDefault(); }); }); 它说,有些问题exeption使用jQuery与系列选项一起是空这是真实的,并尽我所能通过IE调试(painnfull !!!) 我不能通过jFiddle加载相同的AJAX,但代码在那里...... 我很高兴支付一些鱿鱼帮助:)。在数据系列和变量 文森特 2013-02-25 koconder +0 代码太多。什么不工作?你可以说得更详细点吗? – 2013-02-25 16:41:09 +0 ajax调用哪个结果highcharts js被破坏,所以你得到一个JS错误,并且在IE中没有任何作用 – 2013-02-26 14:14:32 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |