jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Bring to front with dynamic multiple windows

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

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

  • nitin7988
    Participant

    I’m creating multiple windows dynamically using this code

    var window = $(“<div id=”+formCode.trim()+”><div>”+formName+”</div><div> Loading… </div></div>”);
    window.appendTo(document.body);
    window.jqxWindow({width: ‘100%’, height: ‘90%’, maxHeight: ‘90%’ ,maxWidth: ‘100%’ , position: { x: 0, y: 60 } , title: formName , showCloseButton: false});

    and setting its contents using this
    window.jqxWindow(‘setContent’, data);

    but after opening 2-3 windows i try to refer the id of 1 window to bring it front using this code it dosenot work
    window.jqxWindow(‘bringToFront’);


    Dimitar
    Participant

    Hello nitin7988,

    Please make sure each of your windows have unique ids. From your code snippet, it is not clear if this is so. If the issue persists, please provide us with a complete example we can test (or a JSFiddle). Remember to format your code by selecting it and pressing the code button in the toolbar.

    Best Regards,
    Dimitar

    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.