1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    22
    Vote Rating
    0
    kanister has a little shameless behaviour in the past

      0  

    Exclamation Unanswered: Ext4 Viewport behaviour on existing body (diffrent form Ext3).

    Unanswered: Ext4 Viewport behaviour on existing body (diffrent form Ext3).


    hi.

    I need to keep existing html inside body unchanged while creating viewport (ie. for browser password handling).

    That was normal case in ext3. Now ext4 came and ruined my solution. Why so?

    What can i do to have some html present (its invisible) no matter how many times viewport is created and destroyed?

    Or maybe someone can just give other example of browser password save on ajax form?

  2. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,083
    Vote Rating
    112
    Answers
    454
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      0  

    Default


    I do this all the time, creating or destroying a viewport shouldn't destroy existing HTML in the body.

    Could you post a short code sample to demonstrate your problem?

  3. #3
    Sencha User
    Join Date
    Sep 2009
    Posts
    22
    Vote Rating
    0
    kanister has a little shameless behaviour in the past

      0  

    Talking solved

    solved


    Mystery solved.


    new Ext.Viewport({ html:"<b>I destroy body</b>",

    ....

    afterrender:function(){

    Ext.getBody().insertHtml('afterBegin',"<b>I don't do any harm.</b>");

Tags for this Thread