Urgent: Important: Image as responseText or responseXML in

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
venkateshb
Forum Newbie
Posts: 3
Joined: Thu Mar 26, 2009 3:36 am

Urgent: Important: Image as responseText or responseXML in

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

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

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply