jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window jqxWindow('setContent','') not working

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years ago.

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

  • cybermaya
    Participant

    Hello!

    I try to load html file into jqxWindow without using <iframe>
    I try this:
    $(“#jqxWin1″).jqxWindow(‘setContent’, ‘<object type=”text/html” data=”invent.html” width=”400″ height=”250″></object>’);
    but don’t show nothing.

    I try this:
    (“#jqxWin1”).jqxWindow({ height: 250, width: 400, isModal: true, theme: ‘energyblue’, initContent: function () {
    $(“#win1Content”).load(‘<object data=”invent.html” width=”400″ height=”250″></object>’);
    }
    });
    Just show the empty window.

    With <iframe> works fine!
    $(“#jqxWin1″).jqxWindow(‘setContent’, ‘<iframe class=”noScrolling” scrolling=”no” src=”invent.html”></iframe>’);

    Why <object> and not <iframe>?
    Just for compatibility on html5

    Thanks for your help!

    Alex


    Peter Stoev
    Keymaster

    Hi cybermaya,

    setContent sets the innerHTML of the Window’s content. So if there is anything to be shown it will be. If your content is hidden, it’s not an issue of the window.

    Best Regards,
    Peter Stoev

    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.