jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: window modality – stack window modality – stack #4125

    woern123
    Member

    this works

    thank you

    in reply to: window modality – stack window modality – stack #4113

    woern123
    Member

    ups, the code is not complete, what’s wrong?
    how can i post code like your example?

    in reply to: window modality – stack window modality – stack #4111

    woern123
    Member

    ok, i added an second window to your code
    and then there i can interact with the content of the first window

    $(document).ready(function () {
    $('#WindowName_1').jqxWindow({
    autoOpen: false,
    draggable: false,
    resizable: false,
    animationType: 'none',
    isModal: true,
    showCloseButton: false,
    height: 400,
    width: 400,
    maxHeight: 810,
    maxWidth: 1200,
    theme: 'energyblue'
    });

    $('#WindowName_2').jqxWindow({
    autoOpen: false,
    draggable: false,
    resizable: false,
    animationType: 'none',
    isModal: true,
    showCloseButton: false,
    height: 200,
    width: 200,
    maxHeight: 810,
    maxWidth: 1200,
    theme: 'energyblue'
    });

    $('#WindowName_1').jqxWindow('show');
    $('#WindowName_2').jqxWindow('show');

    })

    Title 1

    Title 2

    what i want are nested windows, so when i open the second window the first window should be disabled

    i have tested another code, where i use $(‘#WindowName_1’).jqxWindow(‘disable’); in the second window to disable the first
    but the behaviour is the same, i can interact with the first window, it is not completely disabled

    in reply to: window modality – stack window modality – stack #4104

    woern123
    Member

    the create-code:

    $('#WindowName').jqxWindow({
    autoOpen: false,
    draggable: false,
    resizable: false,
    animationType: 'none',
    isModal: true,
    showCloseButton: false,
    title: 'WindowTitle',
    content: 'Loading...',
    height: 400,
    width: 400,
    maxHeight: 810,
    maxWidth: 1200,
    theme: 'energyblue'
    });

    the code to open a window:

    myurl='content.php?param=1';
    changeContent(myurl, $('#WindowName'));
    $('#WindowName').jqxWindow('show');

    the changeContent-function:

    function changeContent(url, window) {
    window.jqxWindow('setContent', 'Loading...');
    $.ajax({
    dataType: 'html',
    url: url,
    success: function (data) {
    //Parsing the data if needed
    window.jqxWindow('setContent', data);
    },
    error: function () {
    window.jqxWindow('setContent', 'Error');
    }
    });
    }

    the other windows have the same code to create and set the content

    in reply to: window modality – stack window modality – stack #4103

    woern123
    Member

    the interaction is not limited to form-elements, i can interact with the whole content
    i forgot to write in my first posting that i load the content with setContent, can this be the problem?

    in reply to: window modality – stack window modality – stack #4101

    woern123
    Member

    i have an similar problem
    when i open the first window and then open the second window, this is not 100% modal
    i can still interact with the form-content of the first window
    i think this is a bug in jqxWindow
    i dont want to hide the first window and re-show it after i close the second window
    is there another solution?

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