Ajax does not return data

0 favourites
  • 4 posts
  • Problem Description

    Trying to read data from a php request. I'm not getting any data read by the ajax.

    I've download sample capx files from the tutorials and still no data is returned.

    Attach a Capx

    Description of Capx

    ____ Displays date and time onto page. ____

    Steps to Reproduce Bug

    • Step 1
    • Step 2
    • Step 3 etc.

    Observed Result

    ____ What happens? There is no data returned

    Expected Result

    ____ What do you expect to happen? __Just want to display data from a page through php

    Affected Browsers

    • Chrome: (YES)

    Operating System and Service Pack

    ____ Windows 8.0 64 bit____

    Construct 2 Version ID

    ____ tested with both r170 and r169____

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I thought it might be a cross domain issue, however I moved my exported html to my website I get no data at all.

  • Closing, please follow the bug report guidelines and attach a .capx reproducing the issue (the forum removed a link due to not enough rep; remove the http and www parts to post it). Also note 95% of the time this type of report is a cross-domain issue and everything is in fact working correctly.

  • Thanks for all your help. The capx was download from links on your site so I just reposted,

    All I had to do was add this to my php file and it worked. .

    header("Access-Control-Allow-Origin: *");

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)