-
-
Save jp26jp/75571b47f671a41aeb9787d7f4eeeb99 to your computer and use it in GitHub Desktop.
Use getJSON with a preloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(".someSpinnerImage").show(); | |
| $.getJSON('file.php', function(json) { | |
| $.each(json, function() { | |
| // Retrieving data from json... | |
| }); | |
| $(".someSpinnerImage").hide(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment