cloudll Posted August 24, 2011 Share Posted August 24, 2011 Hi guys, I am very new to ajax and was wondering if someone could maybe point me in the right place to learn what i need to reach my goal. I currently have an image on my website, a character for a game, the image is positioned using absolute positioning. The pixel placement for the image is stored in a mysql database. I then have a compass, when someone for example clicks north, it loads north.php which adds 30 to the database, changing the aboslute position, and redirects back to the game, with my little character now 30 pixels higher than before. It works fine how it is, but someone has brought it to my attention, that using ajax, I could make it so when i click north, it will update my database +30 and apply the changes to the position of my character without having to refresh the page once. Would anyone know what this feature of ajax is called? or be able to recommend some tutorials that may help with this? Thanks for any tips. Quote Link to comment https://forums.phpfreaks.com/topic/245607-calling-a-number-from-a-database-and-displaying-the-new-number-without-refresh/ Share on other sites More sharing options...
gristoi Posted August 25, 2011 Share Posted August 25, 2011 there you go: http://www.google.co.uk/search?rlz=1C1CHFX_en-GBGB446GB446&sourceid=chrome&ie=UTF-8&q=ajax+tutorials amazing, i got 21,300,00 results in less than a second!! Quote Link to comment https://forums.phpfreaks.com/topic/245607-calling-a-number-from-a-database-and-displaying-the-new-number-without-refresh/#findComment-1261775 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.