Irresistable Posted January 1, 2010 Share Posted January 1, 2010 I have a captcha image create, which the file name is pngimg.php. This has no function included. If I have a link that is a "Refresh" link, how would I go about refreshing the image, so a new image is requested withotu refreshing the page. Link to comment https://forums.phpfreaks.com/topic/186873-image-refresh-without-reloading-page/ Share on other sites More sharing options...
optikalefx Posted January 1, 2010 Share Posted January 1, 2010 grab a DOM reference to the <img> element and change its .src or .setAttribute("src","whatever.jpg"); Link to comment https://forums.phpfreaks.com/topic/186873-image-refresh-without-reloading-page/#findComment-986894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.