-
10 Apr 2009 7:53 AM #1
Loading External HTML into panel
Loading External HTML into panel
Hello,
I'd like to know how can I load an external website into a GXT Layout container. I want to do that to include my help content, that is available in HTML, in my application.
Any ideas?
Thanks!
Regards,
Otavio
-
22 Sep 2009 2:19 AM #2
Did you got any help? I have the same requrement
thanks
lal
-
22 Sep 2009 2:56 AM #3
Hi.
You can use GWT Frame class for this purpose.
And then use the setUrl property.
Regards,
Michel.
-
30 Sep 2009 10:05 PM #4
Check this code it will works
you create a separate HTML File and then create a content Panel like this
ContentPanel contentPanel = new ContentPanel();
contentPanel.setHeading("Accounts Summary");
contentPanel.setCollapsible(true);
contentPanel.setFrame(true);
contentPanel.setBorders(true);
contentPanel.setSize("95%", "auto");
contentPanel.setButtonAlign(HorizontalAlignment.CENTER);
add(contentPanel);
HtmlContainer hc = new HtmlContainer();
hc.setUrl("help.html");
hc.setBorders(true);
contentPanel.add(hc);
After adding this code, now you run your xml file in the GWT Host Mode, you can find your HTML file in the result page
Thanks and Regards,
Sundhar
-
1 Oct 2009 2:33 AM #5
you can also do
PHP Code:Frame contentPanelFrame = contenPanel.setUrl("my/content/url.html");
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
-
17 Sep 2012 5:12 PM #6
What is the equivalent of
HtmlContainer hc = new HtmlContainer();
hc.setUrl("help.html");
in gxt 3?
thanks,
-
12 Apr 2013 2:57 AM #7
Hi All,
Even I have the same requirement as specified by Mr John. Can anybody have a solution for that?
I just have a html file and it has to be loaded in to a content panel on some user interaction?
Thanks in advance.
-
12 Apr 2013 3:21 AM #8
Loading an External HTML page in to GXT application
Loading an External HTML page in to GXT application
I have found a class by name frame in which we have method as setUrl(). Using that method we can load a HTML page in to the GXT application.


Reply With Quote