[webkit-qt] ajax returns json with "

Sylvain Pointeau sylvain.pointeau at gmail.com
Tue Aug 23 10:07:49 PDT 2011


BTW, it works when using the HttpRequest using the following code:

function search() {
 var xmlhttp= new XMLHttpRequest();
 xmlhttp.open("GET", "test_json.json",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText);
 var myjson = JSON.parse( xmlhttp.responseText );
alert( myjson.message );
 }
}
xmlhttp.send(null);

so the issue should be in ajax handling of QtWebkit,
I will drill down into Jquery to understand why it fails in order to narrow
down the issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110823/a00087c8/attachment-0001.html>


More information about the webkit-qt mailing list