Results 1 to 2 of 2

Thread: detect when an image is loaded

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    585
    Vote Rating
    0
      0  

    Default 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
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      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.

Posting Permissions

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