Jump to content

Ajax image output help if possible


crashgordon

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.