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);
$.ajax({
type: "POST",
url: "http://172.16.14.41/mod_open1/save_response.php",
data: { xml_string: string1},
success:function(data){
alert(data);
To copy to clipboard, switch view to plain text mode
Added after 1 34 minutes:
included the below lines and it worked. thx
page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls,true);
page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls,true);
page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
To copy to clipboard, switch view to plain text mode
Bookmarks