Ajax Object's problem.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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