1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    31
    Vote Rating
    0
    efsiken is on a distinguished road

      0  

    Question How to maintain a website inside the ContentPanel?

    How to maintain a website inside the ContentPanel?


    I created a window into which I inserted a a ContentPanel. Using the setUrl() method, I place the content of a website on the content panel. But the problem I have is, when I launch to open the window, the site content is no longer shown inside the ContentPanel but takes the whole browser (iexplorer). There are some sites that remain inside the panel. Has someone a way we can maintain the site inside the ContentPanel?
    regards

  2. #2
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    send the code plz

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    31
    Vote Rating
    0
    efsiken is on a distinguished road

      0  

    Question


    Here is the code

    Window w = new Window();

    w.setSize(800, 500);
    w.setHeading("Mini");
    w.setMaximizable(true);
    w.setMinimizable(true);





    ContentPanel center = new ContentPanel();
    center.setUrl(http://www.google.com);


    w.add(center);


    RootPanel.get().add(w);
    w.show();

  4. #4
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    Hello
    Here is the code I tested, you can inspire a solution

    Code:
    center = new Ext.Panel({autoLoad:"http://www.google.com"});
        
        w = new Ext.Window ({title : "xx", layout: 'fit', items:center, height : 300, width:400})
        w.show();

Thread Participants: 1