Ajax does not return data

Bugs will be moved here once resolved.

Post » Sat May 24, 2014 5:01 am

Message: perrymac is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
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____
B
13
S
3
G
1
Posts: 9
Reputation: 831

Post » Sat May 24, 2014 4:02 pm

I thought it might be a cross domain issue, however I moved my exported html to my website I get no data at all.
B
13
S
3
G
1
Posts: 9
Reputation: 831

Post » Sat May 24, 2014 4:17 pm

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.
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Sun Jun 08, 2014 2:19 am

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: *");
B
13
S
3
G
1
Posts: 9
Reputation: 831


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest