jQWidgets Forums

jQuery UI Widgets Forums Layouts Docking HTML Content

This topic contains 1 reply, has 2 voices, and was last updated by  Minko 12 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    HTML Content Posts
  • HTML Content #4787

    Kynao
    Participant

    How to load a url content into a docking panel ?

    HTML Content #4803

    Minko
    Blocked

    Hello Kyano,

    You can set the content of any of the windows inside jqxDocking using the following code:

    JavaScript

    $('#docking').jqxDocking({ theme: theme, orientation: 'horizontal', width: 550, mode: 'default' });
    $.ajax({
    url: 'test.txt',
    success: function (data) {
    $('#window0').jqxWindow('setContent', data);
    }
    });

    In the success callback the content of the window with id window0 is set to “Sample content“.

    HTML

    <div id="docking" style="float: left;">
    <div style="overflow: hidden;">
    <div id="window0" style="height: 100px">
    <div>
    CISC</div>
    <div>Content about CISC</div>
    </div>
    <div id="window1" style="height: 80px">
    <div>
    Database management system</div>
    <div>DBMS content</div>
    </div>
    </div>
    <div style="overflow: hidden;">
    <div id="window2" style="height: 80px">
    <div>
    RISC</div>
    <div>RISC content</div>
    </div>
    </div>
    </div>

    Best regards,
    Minko

    jQWidgets Team
    http://jqwidgets.com/

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

You must be logged in to reply to this topic.