简体   繁体   中英

Display loading image after clicking on a image/button using java script

I have developed an App using PhoneGap and JqueryMobile. I have many HTML Pages , navigation from One page to other page on click of the image is taking lot of time.And the end user have no clue what is happening at the back end. I would like to show loading image until the page gets loaded.

I'm wondering how could I use Jquery to show a simple "Loading..." on the screen until page is loaded.

Please help me on this.

With jquerymobile you can do this with $.mobile.showPageLoadingMsg() resp. $.mobile.hidePageLoadingMsg() as described in the documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM