Add load event to Ext.net.Image

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Add load event to Ext.net.Image

    It would be awesome if you guys can add a load event to Ext.net.Image. I have an image that hits a httphandler that generates a graph. This can sometimes take a while so I would like to mask the image's container while the image is loading. Currently, I have to manually add masking code every time I call setImageUrl. It would be easier if I can just listen to a load event before the url is set. I am already listening to the complete event to unmask.

    Or if you guys add a Mask config to Ext.net.Image that will do the masking and unmasking internally, that would be even better =).
  2. #2
    Hi,

    Ok, I will add it today/tomorrow
  3. #3
    any updates on this? thanks!
  4. #4
    Hi Jacky,

    The <Complete> Listener and DirectEvent has been added. Please update from SVN.

    Example

    <ext:Image ID="Image1" runat="server" ImageUrl="http://forums.ext.net/image.php?u=52&dateline=1278319354">
        <Listeners>
            <Complete Handler="console.log('Complete', arguments);" />
        </Listeners>
    </ext:Image>
    Hope this helps.
    Geoffrey McGill
    Founder
  5. #5
    oops... maybe I was mistaken.

    A new <BeforeLoad> Listener and DirectEvent will be added shortly, as well as new LoadMask functionality.

    We'll post and update once complete and committed to SVN.
    Geoffrey McGill
    Founder
  6. #6
    Hi,

    We have added the following functionality to the Image
    - BeforeLoad event
    - LoadMask property (automatic masking can be a problem because html image cannot have child element therefore we cannot mask an image directly, we have tested LoadMask with several cases and appears it works correctly but if you find a problem test case then please post it)

Similar Threads

  1. [CLOSED] Load byte array jpg into a Ext:Image
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jun 02, 2018, 5:19 PM
  2. [CLOSED] Load html in window to print an image.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 03, 2011, 10:37 AM
  3. [CLOSED] Image complete event always fire when resetting src
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 28, 2010, 8:02 AM
  4. Replies: 3
    Last Post: Nov 06, 2009, 10:46 AM
  5. [CLOSED] PanelBase.Load hides Control.Load Event
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 22, 2009, 12:36 AM

Posting Permissions