Hybrid View

  1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    9
    Vote Rating
    0
    otaviors is on a distinguished road

      0  

    Default 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

  2. #2
    Ext User
    Join Date
    Oct 2008
    Posts
    12
    Vote Rating
    0
    lal is on a distinguished road

      0  

    Thumbs up


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

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    867
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Hi.

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

    Regards,
    Michel.

  4. #4
    Ext User
    Join Date
    Apr 2009
    Posts
    31
    Vote Rating
    0
    sundhar_v is on a distinguished road

      0  

    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
    961
    Vote Rating
    1
    Arno.Nyhm is on a distinguished road

      0  

    Default


    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

  6. #6
    Sencha User
    Join Date
    Sep 2012
    Posts
    1
    Vote Rating
    0
    john kramer is on a distinguished road

      0  

    Default


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

    thanks,

  7. #7
    Sencha User
    Join Date
    Mar 2013
    Posts
    15
    Vote Rating
    0
    shashank_a is on a distinguished road

      0  

    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
    Sencha User
    Join Date
    Mar 2013
    Posts
    15
    Vote Rating
    0
    shashank_a is on a distinguished road

      0  

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