Results 1 to 2 of 2

Thread: onError event not working in ie10

  1. #1

    Default onError event not working in ie10

    I'm developing a Windows 8 App and have a problem. In the template of a component list (itemTpl property) I have an img tag that contains the onError event.


    When the event is triggered, the application fails with the following message:
    https://dl.dropboxusercontent.com/u/...oro/Error1.PNG



    My code is:
    Code:
    xtype: 'list',
    height: '100%',
    width:'100%',
    deferEmptyText: false,
    emptyText: '',
    id: 'lsArticuloListado',
    itemTpl: [
                  '<img style="height: 50px;" src="' + g.pathDownload + 'archivos/' + '{foto}" alt="{foto}" onerror="console.log("error");">',
                  ],

    If I delete the event works correctly but I need it.


    Using Sencha Touch 2.3.1
    Build date: 2013-11-08 13:58:42 (d989f4377b0a56f9f540fd415741d1f2db1c7977)


    Thank you

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108
    Answers
    342

    Default

    The following works for me.
    https://fiddle.sencha.com/#fiddle/57n
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Tags for this Thread

Posting Permissions

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