lmfname_Marco Posted September 9, 2015 Share Posted September 9, 2015 I want to show the gift on running game by use ajax to get the gift code from server?and then , I don't know doing.. Link to comment Share on other sites More sharing options...
netcell Posted September 9, 2015 Share Posted September 9, 2015 Either use jQuery or use the snippets at http://youmightnotneedjquery.com/. Befive.Info 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted September 10, 2015 Share Posted September 10, 2015 jQuery is the best way! Link to comment Share on other sites More sharing options...
lmfname_Marco Posted September 12, 2015 Author Share Posted September 12, 2015 jQuery is the best way! I know the best way is use jQuery, but in the phaser I should how to do ? Link to comment Share on other sites More sharing options...
MichaelD Posted September 12, 2015 Share Posted September 12, 2015 I don't think there is a specific way to do it in Phaser, Phaser is just javascript so you can do what you would normally do in any other javascript application. Just load jquery or zepto make a call with ajax and store/use the data that come in as you see fit inside Phaser. Link to comment Share on other sites More sharing options...
Budda Posted September 14, 2015 Share Posted September 14, 2015 Rather than dragging the huge jQuery lib in for something as small as ajax I used the Zepto.js library which you can hand pick what jQuery compatible functions you want in it! Perfect for keeping your games lean. http://zeptojs.com/ MichaelD and jdnichollsc 2 Link to comment Share on other sites More sharing options...
drhayes Posted September 14, 2015 Share Posted September 14, 2015 Depending on your browser targets you might be able to use fetch instead. Link to comment Share on other sites More sharing options...
Recommended Posts