1. #1
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default How to render an full HTML page into a ExtJS Container/Panel?

    How to render an full HTML page into a ExtJS Container/Panel?


    Hi

    I need to render a fully HTML page returned as an AJAX request into an existing Container/Panel.
    The returned HTML page contais DOCTYPE, HTML begin/end and also functions...

    I try it nesting html in a Panel.
    It seems works, but function declared in the HTML page seems to be missing.

    Code:
    vMainPanel.add(
    new Ext.Panel({html: aResponse.responseText}));
    vMainPanel.doLayout();
    Any idea to solve it ?

    Thanks

  2. #2
    Ext JS Premium Member Lloyd K's Avatar
    Join Date
    Oct 2007
    Location
    Brighton, United Kingdom
    Posts
    655
    Vote Rating
    1
    Lloyd K is on a distinguished road

      0  

    Default


    Nest an IFRAME inside the panel and set that to a URL of some sorts?
    - Lloyd K

    I blog about code from time to time: http://codeology.lloydkinsella.net/

  3. #3
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default


    hi Lloyd

    Thank you for the suggestion, but it is not possible.
    I don't know the return type when I invoke the request.
    When the reponse is return back, I need to check the response content type and render the result.

    If when the content type result is of type HTML, I can create of couse a inner IFRAME (but in anyway I want avoid to use Iframe....) but so I must ask again all the request (and so create additional LAN traffic and lost of time...)

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    If you're going to return a full HTML page, you have to put in an IFRAME, or you would have to write custom code to strip everything out except what's inside the body tag. If you don't use an IFRAME you also won't be able to use the CSS/JS files included in that page.

  5. #5
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default


    Ty
    I used http://extjs.com/learn/Extension:ManagedIframe and it is working fine with a simple example.
    Thanks

  6. #6
    Sencha User
    Join Date
    Nov 2013
    Posts
    3
    Vote Rating
    0
    Ange5545 is on a distinguished road

      0  

    Default


    I have same problemm, but I cannot use iframe. (My project must work in IE, but my page alredy there is in iframe. IE dont suuport it).How I can solve my problem without using Iframe?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi