[CLOSED] Image complete event always fire when resetting src

  1. #1

    [CLOSED] Image complete event always fire when resetting src

    Html Image.complete property is readonly. After initial load is done, the property will remain true even when you reset the Image's src. The Ext.net.Image's checkTask checks this complete property to test if image is finished loading. After the initial load, the checkTask will always think the image has been loaded even if the new image src takes a while to load.

    Here's my scenario. I have an image with src initially set to a cached version of a graph. That returns immediately. A button on the form can be used to refresh the image/graph. At that point, I change image path to a httphandler that hits the database for data and outputs a graph. That process can take a few seconds so I throw up a mask in the new beforeload event. In the complete event, I remove the mask. Since the Image.complete property is already true from the initial cached image, the mask goes away very fast but the report is still loading.

    The only fix to this I think is to put a new AutoDestroyImage (or something) property on Ext.net.Image. When setImageUrl is called, it will destroy existing imageProxy and create a new one.
    Last edited by geoffrey.mcgill; Jul 28, 2010 at 8:34 PM.
  2. #2
    Hi,

    We have added Image instance recreating when image's src is changed. Can you update from SVN and retest?
  3. #3
    Hello, jchau!

    Does your code work fine now?

Similar Threads

  1. [CLOSED] DisplayField change event does not fire
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 06, 2014, 3:16 AM
  2. [CLOSED] Event Mask is not showing until complete process
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 08, 2011, 3:36 PM
  3. Replies: 20
    Last Post: Nov 24, 2010, 12:39 PM
  4. How to fire event by row select?
    By mannyk in forum 1.x Help
    Replies: 0
    Last Post: Aug 05, 2010, 9:48 AM
  5. CheckColumn fire event
    By fabiomarcos in forum 1.x Help
    Replies: 0
    Last Post: Oct 06, 2009, 10:55 AM

Posting Permissions