[CLOSED] What is the best way to load a html document in a ext:Panel?

  1. #1

    [CLOSED] What is the best way to load a html document in a ext:Panel?

    Hi!

    I'm trying load a html document in a ext:Panel, in cliente side (javascript)...

    I'm creating a panel this way:

    //paneAgreement
        var paneAgreement = paneMain.add({
            itemId: 'paneAgreement',
            layout: 'absolute',
            flex: 1,
            border: true,
            bodyPadding: 6,
            autoscroll: true,
            defaults: {
                'labelAlign': 'top'
            }
        });
    And loading a html document into a panel this way:
          paneAgreement.getEl().update(objDAL.TextMDoc); //this property return a html document
    In this way, the scrollbars not showed!!!

    Thanks for any help!
    Last edited by Daniil; Jul 10, 2012 at 6:12 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It would be best to use the Loader to load anything including HTML.

    Please try:
    paneAgreement.body.update(objDAL.TextMDoc);
    instead of
    paneAgreement.getEl().update(objDAL.TextMDoc);
  3. #3
    Works very fine...

    Thanks a lot Daniil!

Similar Threads

  1. Replies: 1
    Last Post: Apr 11, 2012, 4:24 PM
  2. [CLOSED] Load html in window to print an image.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 03, 2011, 10:37 AM
  3. [CLOSED] Script tag HTML rendering on first page load
    By seanwo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 03, 2010, 8:31 PM
  4. how to load data to grid panel in page load
    By andylaiyongsing in forum 1.x Help
    Replies: 1
    Last Post: Apr 16, 2010, 10:27 AM
  5. How to load PDF document in AutoLoad?
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: May 14, 2009, 5:30 PM

Posting Permissions