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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,590
    Answers
    541
    Vote Rating
    322
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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>");

Thread Participants: 1

Tags for this Thread