Image remains masked on error

  1. #1

    Image remains masked on error

    On the following example, image remains masked on error (load failure)
    Name:  err001.png
Views: 32
Size:  1.7 KB
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <body>
        <ext:ResourceManager ScriptMode="Debug" Theme="Triton" runat="server" />
        <ext:Image ImageUrl="http://speed.ext.net/identity/INVALID.png" Width="100" Height="100" runat="server">
            <CustomConfig>
                <ext:ConfigItem Name="loadMask" Value="true" Mode="Raw" />
            </CustomConfig>
        </ext:Image>
    </body>
    </html>
    Note: the issue is also present at version 3.3.0.
    Last edited by RaphaelSaldanha; Jun 28, 2016 at 4:04 PM.
  2. #2
    It's possible to overcome the issue by doing the following:
    Ext.net.Image.override({
        afterRender: function () {
            var me = this, loadMask = me.loadMask;
            me.imgEl.on("error", function () {
                if (loadMask) {
                    me.getMaskEl().unmask(loadMask.removeMask);
                }
            }, me);
            me.callParent(arguments);
        }
    });
    Last edited by RaphaelSaldanha; Jun 28, 2016 at 5:04 PM.

Similar Threads

  1. [CLOSED] Set value of a masked control
    By RaphaelSaldanha in forum 3.x Legacy Premium Help
    Replies: 11
    Last Post: Jan 28, 2016, 5:33 PM
  2. [CLOSED] Masked textfield readonly is not working
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 30, 2013, 7:15 AM
  3. Replies: 7
    Last Post: Dec 04, 2012, 12:09 PM
  4. Textbox Masked
    By glauber in forum 1.x Help
    Replies: 1
    Last Post: Jun 08, 2009, 10:40 AM

Posting Permissions