I'm looking for a way to make my site look a bit smooth, it's a casino with some php games.
Whatever steps you take in the game, it refreshes the page, there is a slot game in my game and on mobile you can not see slot animation because before you can scroll And I can see it below ..
I would like to apply Ajax to my site, instead it is refreshing to change images to a page and that's it.
I have a jQuery AJAX API guide and I can not make it head or tail. I need to do everything an AJAX is run through AJAX when a button is clicked
How difficult is it to do?
I have this code which I am told is on the right line, but how do I use it?
$ Ajax ({url: '/ lib / casinofile', data: {Action: spin-wheel '}, type:' post ', success: function (spinwheel) {alert (spinwheel)}}}); Thanks in advance
Well this code is basically A post release / request for lib / casinofile, when the casinos are returned by the server then the success function is triggered ... In this case it will create a popup with the server's response in your browser (in this case it will Is a spinwheel).
You can do this in any other way: $ .post ('/ lib / casinofile /, {action:' spin-wheel '}, function (data) {warning (data);}) ;
No comments:
Post a Comment