Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

[extensions] Open webpage in extension and not in webview

Hi all,

I just want to open a webpage in the extension object and not in the webview page.

For example, in my extension I have :

html += '<form action="http://www.google.fr">'+

              '<input type="submit" value="Go" />' +

         '</form>';

// Set the HTML

this.Element.innerHTML = html;

When I click on the button, the web page open in the QlikView project itself and I can't go back to QlikView sheets except with Backspace button.

I will take a look again on WebPageViewer extension.

Thanks for your help.

1 Solution

Accepted Solutions
Not applicable
Author

Ok, I managed to do it with iFrame.

        var doc = ifrm.contentDocument;

        if (doc == undefined || doc == null)

            doc = ifrm.contentWindow.document;

        doc.open();

        doc.write(html);

        doc.close();  

View solution in original post

1 Reply
Not applicable
Author

Ok, I managed to do it with iFrame.

        var doc = ifrm.contentDocument;

        if (doc == undefined || doc == null)

            doc = ifrm.contentWindow.document;

        doc.open();

        doc.write(html);

        doc.close();