Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Sep 2009
    Posts
    22
    Vote Rating
    0
      0  

    Exclamation 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,790
    Answers
    583
    Vote Rating
    390
      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
      0  

    Talking 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •