Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Listen to image load error in controller

$
0
0
Hi,

I have a Can Controller that renders some stash templates and inserts into the DOM.
The template contains images and I want to listen to events for when those images fail to load.

I tried this but i get no events. Any ideas?
"img error": function (el, ev) {
          //error
}

Viewing all articles
Browse latest Browse all 3491

Trending Articles