jquery Mobile Click Show Load Wait effect

Source: Internet
Author: User

When you click a button or link, it triggers the wait loading effect:

XML code
  1. <script>
  2. <!--
  3. $ (document). Bind ("Mobileinit", function () {
  4. });
  5. $ (function () {
  6. The default setting, a small circle in the turn
  7. $ (' #default '). Live (' tap ', function () {
  8. $. mobile.loadingmessagetextvisible = false;
  9. $.mobile.showpageloadingmsg ();
  10. } );
  11. The periphery of a small circle with a rectangular background
  12. $ (' #loadingMessageTextVisible '). Live (' tap ', function () {
  13. $. mobile.loadingmessagetextvisible = true;
  14. $. Mobile.loadingmessagetheme = ' a ';
  15. $.mobile.showpageloadingmsg ();
  16. } );
  17. Rectangle background Style is E
  18. $ (' #loadingMessageTheme '). Live (' tap ', function () {
  19. $. mobile.loadingmessagetextvisible = true;
  20. $. Mobile.loadingmessagetheme = ' E ';
  21. $.mobile.showpageloadingmsg ();
  22. } );
  23. Add text underneath the coterie
  24. $ (' #customText '). Live (' tap ', function () {
  25. $. mobile.loadingmessagetextvisible = true;
  26. $.mobile.showpageloadingmsg (' A ', "Please wait ...");
  27. } );
  28. Only words, no coterie in turn
  29. $ (' #noSpinner '). Live (' tap ', function () {
  30. $. mobile.loadingmessagetextvisible = true;
  31. $.mobile.showpageloadingmsg (' A ', "Please wait ...", true);
  32. } );
  33. } );
  34. -->
  35. </Script>



HTML code:

XML code
  1. <p><a id="Default" data-role="button">default Loader< /a></P>
  2. <p>< a id= " Loadingmessagetextvisible " data-role=" button ">loadingmessagetextvisible =  True</a></ p>  
  3. <p>< a id= "Loadingmessagetheme"  data-role= "button" >loadingmessagetheme =  ' E ' </a></p>   
  4. <p>< a id= "CustomText"  data-role= "button" >custom text</a></p >  
  5. <p>< a id= "Nospinner"  data-role= "button" >no spinner </a></ p>  



http://www.elated.com/res/File/articles/development/javascript/jquery/ jquery-mobile-1-1-smoother-faster-nicer/loading.html 


http://my.oschina.net/geomen/blog/60259  


Jquerymobile plug-in imitation iphone slide show Delete button  
http://www.oschina.net/code/snippet_152736_17798  

jquery Mobile Slide-in plugin  
http://mmenu.frebsite.nl/ 

jquery Mobile ten common skills  
http://blog.csdn.net/hezudao25/article/details/8052785 

jquery mobile Chinese manual api 
http:/ WWW.LAMPWEB.ORG/JQUERYMOBILE/5/11.HTML&NBSP

Jquerymobile The ultimate solution for dynamically adding element css loss  
/http/ BLOG.CSDN.NET/LGD5979/ARTICLE/DETAILS/7161339&NBSP

Bootstrap Chinese  
http://v3.bootcss.com/ 

jquery Plugin library  
http://www.jq22.com/ 


Mobile Development Essentials! 15 jquery Mobile plugin  
http://www.csdn.net/article/2013-11-22/2817596-15- jquery-mobile-plugins-for-mobile-dev/1 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.