jQuery UI Widgets Forums Chart NS_ERROR if Chart shall initialize in closed NavigationBar

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Robin Kluth 11 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Robin Kluth
    Member

    Hi.

    I’ve updated to 2.7.0 and got the following error:

    NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox]
    [Bei diesem Fehler anhalten]
    ...,c=l.length;c--;)(f=l[c][/c])&&(v[d[c][/c]]=!(y[d[c][/c]]=f));if(i){if(o||e){if(o){for(l=[],...
    jquery...3021211 (Zeile 2)
    NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMSVGLocatable.getBBox]
    [Bei diesem Fehler anhalten]
    ...ient"}else{if(b.type.indexOf("column")!=-1){return b.orientation=="horizontal"?"...

    if I want to initialize a Chart within a closed NavigationBar:

    $('#jqxNavigationBar').jqxNavigationBar('setContentAt', 0, data);
    $('#jqxChart').jqxChart(settings);
    $('#jqxNavigationBar').jqxNavigationBar('expandAt', 0);

    (where data contains the settings, etc, fetched from ajax, and load it into the navigationbar).

    If I exchange these two actions, all is working fine:

    $('#jqxNavigationBar').jqxNavigationBar('setContentAt', 0, data);
    $('#jqxNavigationBar').jqxNavigationBar('expandAt', 0);
    $('#jqxChart').jqxChart(settings);

    So: If I want to init a chart within a closed Navigationbar, it will fail. If the Navigationbar was opened, it will work.

    Its not a blocking error, but weird that this will work with previous versions oj jqx.

    Do you need further informations or can you reproduce it?

    Im working with jQuery 1.9.0


    Peter Stoev
    Keymaster

    Hi Robin Kluth,

    The jqxNavigationBar now features a callback which should be used for initialization of any widgets. The Chart is not expected to be initialized in a hidden element.

    Sample:

    $("#jqxNavigationBar").jqxNavigationBar({
    initContent: function (index)
    {
    $("#jqxButton").jqxButton({ width: 100, height: 50 });
    }

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    Robin Kluth
    Member

    Thanks for your answer. I cant use it, because the navigationbar is already initialized if I want to initialize the Chart. The Chart gets generated after a few user’s input.

    Another way could be the creation of a empty chart while initialize the NavigationBar and only update the Chart after user input.

    Whatever, thanks for your hint.

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

You must be logged in to reply to this topic.