Results 1 to 4 of 4

Thread: LoadMask in loading image to Img component

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    27
    Answers
    2
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Does it show if you don't do the setSrc?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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

    Default

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

Posting Permissions

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