jQuery UI Widgets Forums Dialogs and Notifications Window Load HTML into window

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Load HTML into window #101933

    CXXXV
    Participant

    This code does not load the HTM into the window:

    $("#popupWindow").jqxWindow({ position: { x: 300, y:100 } });
    $("#popupWindow").jqxWindow('setContent', '/tripinfo.htm');	
    $("#popupWindow").jqxWindow('open');	

    Something to do with the setContent. Also, how do I pass a variable value to the window.

    Load HTML into window #101936

    CXXXV
    Participant

    I forgot the innerHTML part. The form now loads. However, none of the code for initializing jqxwidgets is working. When loading the HTML alone it all works.

    Load HTML into window #101954

    Martin
    Participant

    Hello CXXXV,

    Yes, you can not initialize widgets like this.
    Usually, this is done in the initContent callback.

    If you need to set is dynamically later, you can do the following: http://jsfiddle.net/fxNU5/536/

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.