Answers for "why I can not insert image with ajax request"

0

why I can not insert image with ajax request

var img = document.querySelector('.i');
            img.setAttribute('src','data/'+e[0]);
             function loadImage() {
            context.drawImage(img,0,0)     
            console.log('Yes');  
             }     
             setTimeout(loadImage,100); // set timeout so that the code can take few moment to load;
Posted by: Guest on May-04-2021

Code answers related to "why I can not insert image with ajax request"

Code answers related to "Javascript"

Browse Popular Code Answers by Language