I have a problem receiving and opening a picture via AJAX. If I call the following page:
http://127.0.0.1:8889/ex?sql=SELECT+Image+FROM+Persons+WHERE+Number+Like+%27%2501%27
a picture is displayed from a blob field in IE8.
Now I would like to open this into a div after someone pressed a key (using AJAX)?
Trying to use xhr.responseText does not work (I get an error. Using it on a text response works). So it seems that my problem is to grab the result from the ajax request.
我如何能够这样做?
一些法典和错误信息:
var picReturn = xhr.responseText;
=> 由于以下错误,可能无法继续:00ce514