Hello,
I load a template by the way of a function in my globals.js:
Code:
function loadURL(url) {
var oRequest = new XMLHttpRequest();
oRequest.open('GET', url, false);
oRequest.setRequestHeader("User-Agent", navigator.userAgent);
oRequest.send(null);
return oRequest.responseText;
};
and for exemple, in my view, i load this template:
Code:
tpl: loadURL(host + 'WPApp/app/views/ModuleDirectory/templates/DirectoryInformationsPanel.html'),
In this template, i can access to all my store data, {name} etc ...
But i have an Image link, in my store,
and in the template DirectoryInformationsPanel.html, i load like that the image:
Code:
<img src={icon} title="thumb" style="float:right;">
and it doesn't work.
Before, i loaded the image directly in the view, by
Code:
tpl: '<img src={icon} title="thumb" style="float:right;"> '
and it worked.
How can i fixed it ?
thanks for help 