This thread follows my question about how to embed a web application in a Qt executable.
My web application is a JQuery based application and I wouldn't modify it when embedding it in Qt.
In this application, I load an XML document asynchronously with the $.ajax(url [, settings])
function.
As the XML file is part of the Qt program, there is no HTTP server to return this file. So it seems the ajax request fails.
Is there any solution to bypass this problem?
EDIT
Actually, the XML file seems to be loaded. But [$.ajax(url [, settings])
] called error(jqXHR, textStatus, errorThrown)
.
jqXHR
contains the XML document, textStatus
equals error
and errorThrown
is empty...
SOLUTION
I finally found the solution: Read local file from QWebView using Ajax request. Hope this helps.