In async calls you set up a callback funtion to receive the result of e.g. the login. The callback function removes the loading.gif while you set the loading.gif just before starting the async call.
Have a look at this: http://stackoverflow.com/questions/1853662/how-to-show-page-loading-div-until-the-page-has-finished-loading /Mogens On April 14, 2015, Rune Back <rune.b...@gmail.com> wrote: > How do I use the loading.gif ? I would be interested in using it with a > (a)synchronous request i.e. at login when checking with the server that the > login info is correct. > > regards > > Rune > > > -- > You received this message because you are subscribed to the Google Groups > "iPhoneWebDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to <iphonewebdev+unsubscr...@googlegroups.com>. > To post to this group, send email to <iphonewebdev@googlegroups.com>. > Visit this group at <http://groups.google.com/group/iphonewebdev>. > For more options, visit <https://groups.google.com/d/optout>. > -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to iphonewebdev+unsubscr...@googlegroups.com. To post to this group, send email to iphonewebdev@googlegroups.com. Visit this group at http://groups.google.com/group/iphonewebdev. For more options, visit https://groups.google.com/d/optout.