dingkai031's Forum Posts

  • 9 posts
  • Put it in a variable first. Or make the ajax request and response handle directly in js to begin with.

    I see, thanks for the help!

  • Hello, I would like to retrieve ajax.LastData data to javascript.. how do I do that?

    Maybe in similar way where I can get globalVariable data through runtime object.

    Thanks!

    Tagged:

  • I need to integrate the game without an iFrame, because I would like to change my site appearance when certain games event occurred.

    Maybe if I prepare a canvas with a certain size and inject the game to the canvas, but I do not know how to achieve it. Or maybe there's another alternative that construct 3 supported?

    Thanks

    Tagged:

  • I only see "success" in dev tools but do not see "somehitng complete" and also without any errors

  • Previously I use JS fetch API to send request (because I'm more familiar with it). I send a request to my server and it works, but I found that fetch API is run only on it's block scope. Other block is still run while I use "await".

    Okay, then I started to give try the AJAX Object. But it doesn't work, do I missed something? thanks.

    Info :

    I have put the "Access-Control-Allow-Origin, headers and methods".

    The server only response with die(json_encode(["status" => "success"]))

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not sure if this will be helpful, but check out this link:

    https://howtoconstructdemos.com/communicating-with-an-iframe-in-construct/

    Thank you, any ideas I appreciate.

  • I have this site "www.example.com/gamesite.php", and I also have a game developed using construct 3 uploaded at example.com/games/wargame

    In gamesite.php, I serve "wargame" using an Iframe. Also, in gamesite.php.. I have a user authenticate and keep the data in $_SESSION.

    What I want is, the game to recognize the user that currently play using $_SESSION.

    How do I do that? or maybe there's another approach...

    Thanks

  • I see, thank you

  • Hello I'm a web developer, and recently I need to make some games for my website.

    I was trying to find a value saved to local storage by using developer console (e.g. dev tools -> application -> localstorage).

    But, I can't find it.. is it save somewhere else?

    Thanks

  • 9 posts