Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Ajax send status 0 on javascript in a WebView html file
Forum Update on Monday, May 27th 2025

Ajax send status 0 on javascript in a WebView html file

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    albertguedes
    wrote on 27 Sept 2014, 18:50 last edited by
    #1

    Hi,

    I made a QwebView that load a simple html file with javascript that request images from outher url with Ajax.

    The problem is that the 'xmlhttp.status' always returns 0 , but when i request the html file as a page on a localhost server via 'page' method , the script work fine.

    How to solve this ? Thanks.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      brcontainer
      wrote on 1 Oct 2014, 16:24 last edited by
      #2

      Using file:/// protocol?

      QT project: https://github.com/brcontainer/qt-helper

      1 Reply Last reply
      0

      1/2

      27 Sept 2014, 18:50

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved