agouti1014's Recent Forum Activity

  • Oh and one more thing... simply loading the php page in the browser works. ;-)

  • Yes... I am running my files on my own server so there should not be an issue there... please note though that I have been able to historically make this work, but I recently upgraded to construct version r81.

    A bug maybe? Sending data to php is still not a problem... my php will even update mysql tables with no issue.

    Its just trying to load player data from php. I decided to drop the complexities of tokenat, etc and attempt to just make a simple project that will simply indicate that the receiving of data works. Not working, but I hope I am not missing anything... that would be embarrassing. LOL

  • Hello -

    I am still very new to construct2.

    I have a very simple php file on my server that does the following:

    <?php

    echo "it works";

    ?>

    Now for construct2 I have a single layout with a text object called "Text" that has a default text of "waiting".

    My event sheet is:

    • System->On start of layout-> AJAX.Request "http://mysite.com/test.php"
    • AJAX->On Complete->Text->Set text to ->AJAX.Lastdata
    • AJAX->On Error->Text->Set text to ->"Error"

    No matter what I am getting an error.

    Please note that I have had 100% success with adding data to mysql through php that originates in construct2... the problem I am getting is receiving data back from php on my server (with or without placing the files on my server).

    Any ideas?

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you... <img src="smileys/smiley9.gif" border="0" align="middle" /> I think I need some sleep. I've been up far toooo long. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Hello -

    Sorry if this has already been asked, but I have looked and searched repeatedly and I cannot find a direct answer to this question.

    I was attempting to use a sprite's x and y value in the "URL" parameter for an AJAX object. Let us say that I wish to log a sprites location every 60 seconds. Its position on the next interval is 20 x and 50 y. I have found that if I literally code the values into the URL for the AJAX it works fine. For example, this does the job nicely:

    "HTTP://mywebsite.com/myPHPfile.php?x=20&y=50"

    BUT... when I attempt to do the following nothing happens on my server...

    "HTTP://mywebsite.com/myPHPfile.php?x=Sprite.X&y=Sprite.Y"

    I am kind of new to this... any help would be appreciated.

    Thank you! <img src="smileys/smiley2.gif" border="0" align="middle" />

agouti1014's avatar

agouti1014

Member since 24 Feb, 2012

None one is following agouti1014 yet!

Connect with agouti1014

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies