PDA

View Full Version : AJAX loading issue on QGraphicsWebView



ejoshva
30th June 2015, 10:01
I have a loaded a page which contains few question.
On submit, ajax is called to send response to an url (the answers are send).

But this ajax code is not being called.




$.ajax({
type: "POST",
url: "http://172.16.14.41/mod_open1/save_response.php",
data: { xml_string: string1},
success:function(data){
alert(data);


Added after 1 34 minutes:

included the below lines and it worked. thx



page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFi leUrls,true);
page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRe moteUrls,true);