jQWidgets Forums

jQuery UI Widgets Forums Chart Pie not shown in IE7

This topic contains 9 replies, has 2 voices, and was last updated by  simcon94 12 years ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • Pie not shown in IE7 #21121

    simcon94
    Participant

    Hi there,
    i open a new window when i click into the pie:
    groups[0].click = function (e) {
    var meterTypeId = dataAdapter.records[e.elementIndex][“MeterTypeId”].toString();
    var url = sk.appHelper.getAppDomainAppVirtualPath() + “bla/bla”;
    window.open(url);
    };

    It works.

    When IE open the new side, it gives an Error.
    Here is my Code:

    var source =
    {
    datatype: "json"
    , datafields: []
    , url: sk.appHelper.getAppDomainAppVirtualPath() + "bla/bla"
    };
    var dataAdapter = new $.jqx.dataAdapter(source,
    {
    async: false
    , autoBind: true
    , loadError: function (xhr, status, error)
    {
    alert('Error loading "' + source.url + '" : ' + error);
    }
    });
    var seriesColumns = new Array();
    for (var propName in dataAdapter.records[0]) {
    if (propName === "Value") {
    seriesColumns.push({ dataField: propName, displayText: 'Meter', labelRadius: 100, initialAngle: 15, formatSettings: { sufix: '%', decimalPlaces: 1 } });
    }
    }
    var settingsPie = {
    title: "My Identities",
    //description: "Identities I Have Been Using",
    enableAnimations: false,
    showLegend: true,
    legendLayout: { left: 10, top: 15, width: 300, height: 200, flow: 'vertical' },
    padding: { left: 5, top: 5, right: 5, bottom: 5 },
    titlePadding: { left: 0, top: 0, right: 0, bottom: 10 },
    source: dataAdapter,
    colorScheme: 'scheme03',
    seriesGroups:
    [
    {
    type: 'pie'
    , showLabels: true
    , series: seriesColumns
    }
    ]
    };
    $('#jqxPie').jqxChart(settingsPie);
    <div id="jqxPie" style="width:100%; height:100px; float: left;"></div>
    Pie not shown in IE7 #21127

    simcon94
    Participant

    IE 7 Error Message:
    Sign: 75547
    Error: Failed

    Pie not shown in IE7 #21142

    Peter Stoev
    Keymaster

    Hi,

    Could you please post a sample which will enable us to test your scenario?
    I am asking about that because the posted code uses data from remote source so when we test it locally, we will have an empty Chart. In addition, defining the “datafields” array in the source object is required, but in your code, the datafields array is empty.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Pie not shown in IE7 #21172

    simcon94
    Participant

    I have the same code on another side. It works there.
    Only when i open a new window to sgow this pie, it doesn#t work.

    Pie not shown in IE7 #21173

    Peter Stoev
    Keymaster

    Hi,

    Open a new Browser Window, or open it in jqxWindow or another window popup? If you use jqxWindow, make sure that you initialize the widgets in the “initContent” callback of jqxWindow.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Pie not shown in IE7 #21176

    simcon94
    Participant

    i open a new Browser Window or Tab.
    I tested with the code from:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/index.htm#demos/jqxchart/javascript_chart_pie_series.htm

    But its the same effect. My IE7 always gives the error….

    Pie not shown in IE7 #21177

    Peter Stoev
    Keymaster

    Hi,

    Unfortunately, we are unable to reproduce that. The posted demo by you works with IE7 on our side.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Pie not shown in IE7 #21179

    simcon94
    Participant

    When you load the Pie in an new Window?
    with:
    window.open(url);
    ???

    Pie not shown in IE7 #21182

    Peter Stoev
    Keymaster

    Hi,

    It does not matter whether you open it through the API if the URL is correct or via a Click.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Pie not shown in IE7 #21185

    simcon94
    Participant

    thats strange….

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.