Are AJAX requests working in R149?

Bugs will be moved here once resolved.

Post » Tue Nov 12, 2013 4:23 am

Link to .capx file (required!):
https://www.dropbox.com/s/azg9og0vrbhj79i/Ajax_Test.caproj



Steps to reproduce:
1. Make script that makes an AJAX call using R149
2. Call isn't returned


Observed result:
- When I tried similar code in the build before R149, this worked, in R149 it doesn't seem to anymore

Expected result:
- AJAX request returns, browser pop-up triggered

Browsers affected:
Chrome: yes
Firefox: unknown
Internet Explorer: yes

Operating system & service pack:Win7

Construct 2 version:R149
    
B
72
S
14
G
1
Posts: 151
Reputation: 4,999

Post » Tue Nov 12, 2013 10:16 am

Closing, please attach a .capx. A .caproj is not a complete project and cannot be opened.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Wed Nov 13, 2013 3:47 am

https://www.dropbox.com/s/k14qostedf9trgh/ajax_test.capx

Seems to happen on R150 also.
B
72
S
14
G
1
Posts: 151
Reputation: 4,999

Post » Wed Nov 13, 2013 12:27 pm

Pops up for me OK on Chrome using r150. Note this isn't guaranteed to work; it is only possible if the address you request has set up cross-origin resource sharing (CORS) and allows you permission. By default you are not allowed permission. See the AJAX manual entry for more info.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests