Hello,

the class qx.ui.mobile.basic.Image has an event "loaded", that fired
when image is loaded. It is pretty nice feature, that is very useful if
loading large image on slow connection. It allow developer, for example,
show busy indicator and hide it when image is loaded. However, this
event fired only once by loading of image:
http://tinyurl.com/kzkj5qw

is it possible to find out if image already loaded?
It would be nice to have something like this:

image.addListener("loaded", function(){this.hideBusyIndicator();},this);
image.setSource(URL);
if(!image.isLoaded())
{
   this.showBusyIndicator();
}

unfortunately class qx.ui.mobile.basic.Image has not such method as
isLoaded().

Sure, I can save list of all resources, that I have already loaded, but
this solution is not very elegant. Is it other possibility to find out
if resource is already loaded by application?

regards,
Alex
-- 
----------------------------------------------------
Oleksandr Shneyder  | Email: o.shney...@phoca-gmbh.de
phoca GmbH          | Tel. : 0911 - 14870374 0
Bräuhausgasse 9     | Fax. : 0911 - 14870374 9
D-82205 Gilching    | Mobil: 0163 - 49 64 461

Geschäftsführung:
Dipl.-Inf. Oleksandr Shneyder

Amtsgericht München | http://www.phoca-gmbh.de
HRB 196 658         | http://www.x2go.org
USt-IdNr.: DE281977973
----------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to