djfox Posted February 2, 2008 Share Posted February 2, 2008 I hope this is the right forum for this. I currently have some functioning javascript games on my site. What I would like for them to do is if the person playing them is logged in, they earn credits when they complete something in the game (basically updating the database for accomplishing a certain task in the game). Is this possible? Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/ Share on other sites More sharing options...
ryeman98 Posted February 2, 2008 Share Posted February 2, 2008 Definitely possible using AJAX. I don't know how to do it though. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455840 Share on other sites More sharing options...
Stooney Posted February 2, 2008 Share Posted February 2, 2008 AJAX for sure. Read this tutorial before you do anything. It will definitely get you started. http://marc.info/?l=php-general&m=112198633625636&w=2 Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455845 Share on other sites More sharing options...
djfox Posted February 2, 2008 Author Share Posted February 2, 2008 Their coding did not work. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455849 Share on other sites More sharing options...
ryeman98 Posted February 2, 2008 Share Posted February 2, 2008 Well you can definitely google for such scripts but my cousin has been making really cool stuff with AJAX and he's online a lot of the time so if you want to ask him to point you in the right direction, just mail him: www.boedesign.com Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455853 Share on other sites More sharing options...
djfox Posted February 2, 2008 Author Share Posted February 2, 2008 Well you can definitely google for such scripts but my cousin has been making really cool stuff with AJAX and he's online a lot of the time so if you want to ask him to point you in the right direction, just mail him: www.boedesign.com All righty, I`ll see what he says. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455857 Share on other sites More sharing options...
Stooney Posted February 2, 2008 Share Posted February 2, 2008 Their coding did not work. You mean you didn't read it, tried to copy and paste, and nothing worked. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455866 Share on other sites More sharing options...
ryeman98 Posted February 2, 2008 Share Posted February 2, 2008 Their coding did not work. You mean you didn't read it, tried to copy and paste, and nothing worked. Don't worry about it bud. If he wants to try to do it the easy way, that's his choice. He'll just end up hurting himself in the long run. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455871 Share on other sites More sharing options...
djfox Posted February 2, 2008 Author Share Posted February 2, 2008 Their coding did not work. You mean you didn't read it, tried to copy and paste, and nothing worked. I did read it. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455876 Share on other sites More sharing options...
Stooney Posted February 2, 2008 Share Posted February 2, 2008 Their coding did not work. You mean you didn't read it, tried to copy and paste, and nothing worked. I did read it. Then it would work. Link to comment https://forums.phpfreaks.com/topic/89013-php-working-with-javascript/#findComment-455883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.