I am developing my project using backbone.js
, underscore.js
, require.js
and text.js
.
I am required to display image that return from c# controller, in my underscore template file. So I did :
<img src=<%=URLBrand+brand[i].ID%> class="brandimg">
In my browser console I got :
<img class="brandimg" src="http://example.com/brand/21">
Error : failed to load given url.
Note : http://example.com/brand/21
is a controller of c# web service return string url of image.
How can I display image return from any url using javascript?
Any answer is appreciated. Thanks.