-
3 Oct 2012 5:32 AM #1
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:
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')); certImg.setLoading(false);
I try to increase image size up to 1-2 Mb, this made load it 3-4 sec, but load mask still hide...Code:certImg.setLoading('Loading image...'); certImg.setSrc('load_image.php?file_name=' + record.get('invoice_item_file'));
I also tried put certImg.setLoading(false) to afterrender Img event, the result was the same.
-
10 Oct 2012 8:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
- Answers
- 3105
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.
-
7 Dec 2012 3:30 AM #3
-
11 Dec 2012 11:25 PM #4
Do not they come across?
Showing masking windos/progress bar is a like a standard situation...


Reply With Quote