jQWidgets Forums

jQuery UI Widgets Forums General Discussions Display a webpage in a control

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  admin 6 days, 8 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Display a webpage in a control #135890

    priyamsharma2704
    Participant

    Hi, I would like to know if there is a JQX Control where I can load a local webpage that I have. I came across jqxWindow but not sure if I can embed another webpage in it? Does anyone know how this can be done? Thanks in advance.

    Display a webpage in a control #135894

    admin
    Keymaster

    Hi, Inside the window’s content, you can add an iframe i.e you will be able to display a webpage inside the window. For example – https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxwindow/index.htm, inside the initContent callback function, you can add an iframe. $('#window').jqxWindow({ position: { x: offset.left + 50, y: offset.top + 50} , showCollapseButton: true, maxHeight: 400, maxWidth: 700, minHeight: 200, minWidth: 200, height: 300, width: 500, initContent: function () { $('#tab').jqxTabs({ height: '100%', width: '100%' }); $('#window').jqxWindow('focus'); } }); Best regards, Peter Stoev jQWidgets Team https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.