0 Favourites

Is Ajax Request plugin working yet ?

  • I have a fully working project in C2, with a Highscore leaderboard, from an Ajax request from my server, there are no problems with this it shows up the leaderboard table in C2 preview (CORS implemented already)

    I have imported it into C3, and there is 'No Show' of my leaderboard, there is no data from Ajax.lastdata in the debugger also.

    Is there a reason why it works in C2 and not C3

    I was going to file a bug, but inevitably the file would show my servers login details, if i provided the php.

    Cheers

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • The AJAX plugin should work the same as it does in C2 as it does in C3. If there's a bug, we can't do anything unless you file an issue following all the guidelines.

    If you don't want to share your project because it contains login details, you should really, really be aware that if you export your game, you are sharing those details with the whole world! It'll appear in plaintext in the exported data file.

  • The AJAX plugin should work the same as it does in C2 as it does in C3. If there's a bug, we can't do anything unless you file an issue following all the guidelines.

    If you don't want to share your project because it contains login details, you should really, really be aware that if you export your game, you are sharing those details with the whole world! It'll appear in plaintext in the exported data file.

    Thanks for your reply

    I will try and make up a test file, and file a

    Report

    As far as I am aware there are no details(login etc) in the capx just a request to get a php script residing on my server, which should be secure, being server side ?

    EDIT

    Report Filed.

    cheers.

  • Dont mean to go on, but...

    The file I sent for Bug report does indeed work when exported, but does not work in preview mode in C3 on my laptop, my mobile and any other device, using C3 via wifi or 4g.

    So that means I have to export every time I want to test, which is tiresome.

    Anyway, thats my last words on this.

  • Dont mean to go on, but...

    The file I sent for Bug report does indeed work when exported, but does not work in preview mode in C3 on my laptop, my mobile and any other device, using C3 via wifi or 4g.

    So that means I have to export every time I want to test, which is tiresome.

    Anyway, thats my last words on this.

    Same problem... Preview C3 dont working with AJAX, if export for android APK work normally... but work perfectly in C2 preview.

  • > Dont mean to go on, but...

    >

    > The file I sent for Bug report does indeed work when exported, but does not work in preview mode in C3 on my laptop, my mobile and any other device, using C3 via wifi or 4g.

    > So that means I have to export every time I want to test, which is tiresome.

    >

    > Anyway, thats my last words on this.

    >

    Same problem... Preview C3 dont working with AJAX, if export for android APK work normally... but work perfectly in C2 preview.

    My bug report was closed, due to "Could not reproduce" so you will have to file another one.

    Just noticed on the most recent build r42 with sandboxed preview, when trying to load my Highscores from an ajax request, it gives me an option to "load unsafe scripts", when clicked the preview goes blank, and hangs on "loading google chrome", so maybe it's security issues before, but now its sandboxed, maybe there is a future chance of it working?, who knows.

  • I've experienced this issue with preview. Basically if your using preview all AJAX requests must over https, this is because C3 uses https so chrome blocks all "unsafe" non https requests. You can kinda fudge it with the "load unsafe scripts" but it's not very reliable, usually requiring you to reload the preview etc.

    Best bet is to just use https on your server. It can be awkward to set up... but not impossible.

    if you're testing locally you can use self signed certificates, or for a live server you can use https://letsencrypt.org/ which does free SSL certificates.

  • I've experienced this issue with preview. Basically if your using preview all AJAX requests must over https, this is because C3 uses https so chrome blocks all "unsafe" non https requests. You can kinda fudge it with the "load unsafe scripts" but it's not very reliable, usually requiring you to reload the preview etc.

    Best bet is to just use https on your server. It can be awkward to set up... but not impossible.

    if you're testing locally you can use self signed certificates, or for a live server you can use https://letsencrypt.org/ which does free SSL certificates.

    My Server wants £49 a year for that, Hopefully I can use google leaderboards, if and when you intergrate a working plugin into C3.

    Cheers

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