Page 1 of 1

Urgent: Important: Image as responseText or responseXML in

Posted: Wed Apr 08, 2009 7:47 am
by venkateshb
How to get image as responseText or responseXML in Ajax response?
I am using PHP to display image (using echo).

I need to get this image as a responseText or responseXML in the Ajax. How to display the image in the browser using Ajax?

Are there any approaches to have image payload in Ajax responseXML?

Ajax experts, please help me.

Re: Urgent: Important: Image as responseText or responseXML in

Posted: Wed Apr 08, 2009 9:48 am
by pickle
Have the PHP file output the URL to the image. If that's all it outputs, that URL should then be in the responseText of your AJAX call.

Moving thread to Client-Side.