IE11 + on paste event - relative path images are not loading

K

kiran2mca

Hi,

Only On IE11 browser i have a problem of loading images with relative path.
Issue details:
<input type='text' onpaste='pasteevt()'/>

function pasteevt(){
var tbody = $("tbody", "#tblParent");
var row = $("<tr></tr>");
$("<img></img>").attr('src','../testt/img1.png').appendTo($("<td></td>").appendTo(row));
row.appendTo(tbody);
}

Note:
With the full path images are being loaded properly
$("<img></img>").attr('src','C:/Users/u1/Desktop/testt/img1.png').appendTo($("<td ></td>").appendTo(row));


Can any one help me on this pls?

Thanks,
Kiran.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top