1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    583
    Vote Rating
    0
    bhomass is on a distinguished road

      0  

    Default detect when an image is loaded

    detect when an image is loaded


    In javascript you can do a onload event

    <img src='xxx' onload=callImageLoaded() >

    how to do the same in GXT 2.2.x?

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Posts
    1,924
    Vote Rating
    55
    Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough Colin Alworth is a jewel in the rough

      0  

    Default


    GWT's Image widget has a addLoadHandler method allowing you to be informed when the image is available - note that this only shows up if the Image is attached to the page.

    GXT doesn't itself have any image widget, the general GWT one should typically be enough.