Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/73.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer 当通过AJAX调用页面时,IE中的Highcharts被破坏-jQuery异常_Internet Explorer_Jquery_Highcharts_Highstock - Fatal编程技术网

Internet explorer 当通过AJAX调用页面时,IE中的Highcharts被破坏-jQuery异常

Internet explorer 当通过AJAX调用页面时,IE中的Highcharts被破坏-jQuery异常,internet-explorer,jquery,highcharts,highstock,Internet Explorer,Jquery,Highcharts,Highstock,我似乎对通过AJAX加载页面的IE有问题。我们使用jQuery、Bootstrap、Select2和Highcharts,不确定这是否是由select2ajax调用引起的问题,但无结果代码在ajax返回中似乎没有问题。 我得到一个jQuery异常,当没有highcharts时,它似乎很好,所以我不确定问题在哪里 它说jQuery和Series选项的一些问题验证为null,这是不正确的,并且我尽力通过IE进行调试(painnfull!!!) 我不能通过jFiddle加载相同的AJAX,但代码在那

我似乎对通过AJAX加载页面的IE有问题。我们使用jQuery、Bootstrap、Select2和Highcharts,不确定这是否是由select2ajax调用引起的问题,但无结果代码在ajax返回中似乎没有问题。 我得到一个jQuery异常,当没有highcharts时,它似乎很好,所以我不确定问题在哪里

它说jQuery和Series选项的一些问题验证为null,这是不正确的,并且我尽力通过IE进行调试(painnfull!!!)

我不能通过jFiddle加载相同的AJAX,但代码在那里。。。。 我很乐意付钱给一些乌贼帮忙:)

文森特


发现问题,即数据系列和变量中以“,”结尾的错误。

代码太多。到底是什么不起作用?你能说得更具体一点吗?ajax调用导致highcharts js被破坏,所以你得到了一个js错误,IE中什么都不起作用
$(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&regionid=' + 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();
    });
});