Results 1 to 1 of 1

Thread: AJAX loading issue on QGraphicsWebView

  1. #1
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: AJAX loading issue on QGraphicsWebView

    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.

    Qt Code:
    1. $.ajax({
    2. type: "POST",
    3. url: "http://172.16.14.41/mod_open1/save_response.php",
    4. data: { xml_string: string1},
    5. success:function(data){
    6. 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

    Qt Code:
    1. page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls,true);
    2. page()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
    To copy to clipboard, switch view to plain text mode 
    Last edited by ejoshva; 30th June 2015 at 10:01.

Similar Threads

  1. Replies: 2
    Last Post: 19th May 2015, 05:51
  2. Replies: 12
    Last Post: 20th April 2015, 17:27
  3. Replies: 1
    Last Post: 17th April 2015, 07:06
  4. QT Jpeg, Gif, Bmp loading issue
    By meraj ansari in forum Qt Programming
    Replies: 7
    Last Post: 21st May 2010, 08:33
  5. stylesheet loading issue - thread
    By talk2amulya in forum Qt Programming
    Replies: 8
    Last Post: 26th February 2009, 12:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.