Results 1 to 8 of 8

Thread: Loading External HTML into panel

  1. #1

    Default 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

  2. #2
    Ext User
    Join Date
    Oct 2008
    Posts
    12

    Thumbs up

    Did you got any help? I have the same requrement
    thanks
    lal

  3. #3
    Sencha Premium User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    888

    Default

    Hi.

    You can use GWT Frame class for this purpose.
    And then use the setUrl property.

    Regards,
    Michel.

  4. #4

    Default

    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

  5. #5
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    959

    Default

    you can also do

    PHP Code:
    Frame contentPanelFrame contenPanel.setUrl("my/content/url.html"); 

  6. #6

    Default

    What is the equivalent of
    HtmlContainer hc = new HtmlContainer();
    hc.setUrl("help.html");
    in gxt 3?

    thanks,

  7. #7

    Default

    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.

  8. #8

    Default 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •