1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Answers
    2
    Vote Rating
    0
    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
    Gainesville, FL
    Posts
    37,220
    Answers
    3521
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Does it show if you don't do the setSrc?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Answers
    2
    Vote Rating
    0
    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
    Answers
    2
    Vote Rating
    0
    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...

Thread Participants: 1