jQuery UI Widgets Forums Layouts Docking jqxDocking importLayout – invalid JSON – alert

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 4 years, 3 months ago.

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

  • ChristianB
    Participant

    Hello JQX-Team,
    i have a problem with jqxDocking an the importLayout function. If I have no working Layout to import i became an alert(‚Invalid JSON‘).
    I have no error for handle in a ‚try{}catch(e){}‘
    Example:

    try{
    	//importLayout
    }catch(e){
    	//do something
    }

    I have no problem to check if a Layout for loading is present. But If i change dynamic the docking layout
    from

    <div id=‘jqxDocking‘>
    <div></div>
    <div></div>
    <div></div>
    </div>
    

    to

    <div id=‘jqxDocking‘>
    <div></div>
    <div></div>
    </div>

    then i have no working Layout to import. You have any Idea for manage this?
    My firstTime-Solution for the moment is to comment out your try-catch-code in jqxDocking.js.

    And is it possible jqx make no response over alert()?

    LLAP + nice Day
    Christian


    ivailo
    Participant

    Hi Christian,

    As a workaround, you can first import your layout and then to remove the layout’s div.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.