crashgordon Posted July 20, 2010 Share Posted July 20, 2010 Im really strugling with outputting an dynamicaly generated image in php to an innerhtml ajax respons ,im just getting lines of text code and just can seem to get the image to show:( here is whats is in the ajax funtion: document.getElementById('disable').innerHTML = '<img src="'+fr+'">' fr is the output from the php file which is this: header('Content-type: image/png'); imagepng($tn); imagedestroy($tn) ; any help or ideas would really be appreciated. Link to comment https://forums.phpfreaks.com/topic/208271-ajax-image-output-help-if-possible/ Share on other sites More sharing options...
crashgordon Posted July 20, 2010 Author Share Posted July 20, 2010 i found this on the forum but don't understand how it works? http://www.phpfreaks.com/forums/index.php?topic=212074.0 any help would be very much appreciated many thanks Link to comment https://forums.phpfreaks.com/topic/208271-ajax-image-output-help-if-possible/#findComment-1088493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.