A
Abhishek Srivastava
Hello All,
I am trying to obtain an image asynchronously for this I have written code
which uses XMLHTTP object to retreive the image.
now I have to display this image in an iframe. when I say
iframe.contentWindow.document.write(xmlHttp.responseText);
I get an text as "JFIF" in my frame.
Why am I not able to see the image ?
I cannot do something like <img src="img.aspx" /> because I want to fetch
the image asynchronously. using the img tag would mean that I fetch the
image in the same thread as the main page.
regards,
Abhishek.
I am trying to obtain an image asynchronously for this I have written code
which uses XMLHTTP object to retreive the image.
now I have to display this image in an iframe. when I say
iframe.contentWindow.document.write(xmlHttp.responseText);
I get an text as "JFIF" in my frame.
Why am I not able to see the image ?
I cannot do something like <img src="img.aspx" /> because I want to fetch
the image asynchronously. using the img tag would mean that I fetch the
image in the same thread as the main page.
regards,
Abhishek.