Ajax Object's problem.

Get help using Construct 2

Post » Fri Jan 31, 2014 7:27 am

Hello, i'm not a web coder, so i have some problems with Ajax Understanding.
I need get a text from some website, to operate with it in futher.
So, i make an event of button clicking, and action of it is ajax request to url: "http://something.com/index.php" with tag "1" or "".

then i make an event Ajax^ on completed "1", and add action like text object set text to AJAX.LastData.

There're no changes at text object.vachovsky2014-01-31 07:29:02
B
3
Posts: 3
Reputation: 185

Post » Fri Jan 31, 2014 9:45 am

AJAX is, is C2 or not, restricted by some rules, to protect the user. One of those rules is : no cross-domain. This means an AJAX request can only be for the same domain your game is stored on.

If it is required to pull some information from another website, you can do it from the server, in PHP using CURL for example.
B
17
S
8
G
4
Posts: 473
Reputation: 6,221


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey and 9 guests