1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
    Answers
    2
    Allan Stark is on a distinguished road

      0  

    Default Unanswered: LoadMask in loading image to Img component

    Unanswered: LoadMask in loading image to Img component


    ExtJS 4.1.1a
    I need to show "Loading image..." mask during update src property of Img component.

    This code not show load mask:
    Code:
    certImg.setLoading('Loading image...');
    certImg.setSrc('load_image.php?file_name=' + record.get('invoice_item_file'));
    certImg.setLoading(false);
    And this code show, but don't hide load mask:
    Code:
    certImg.setLoading('Loading image...');
    certImg.setSrc('load_image.php?file_name=' + record.get('invoice_item_file'));
    I try to increase image size up to 1-2 Mb, this made load it 3-4 sec, but load mask still hide...
    I also tried put certImg.setLoading(false) to afterrender Img event, the result was the same.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,624
    Vote Rating
    434
    Answers
    3105
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Does it show if you don't do the setSrc?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
    Answers
    2
    Allan Stark is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Does it show if you don't do the setSrc?
    Yes. And when commented "certImg.setLoading(false);" - img is updated, but loadmask still shown over img...

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Vote Rating
    0
    Answers
    2
    Allan Stark is on a distinguished road

      0  

    Default


    Do not they come across?
    Showing masking windos/progress bar is a like a standard situation...