jquery - jqtouch - no loading image appears -


I am creating a web app using jqtouch and an AJAX link on the external HTML page. When there is internet connectivity, the link works fine, but when the connection is not available, there is no "loading" message.

Should it be a default behavior in jqtouch? If so, can not the image be displayed?

Thank you for your help

OK I have done it by myself .

js code:

  $ (function () {$ ('# link') .tap (function) {$ ('# myloading'). CSS (" Display "," "); window.place = this.href; return false;}); $ ('# Myloading') center ();}); JQuery.fn.center = function () {this.css ("position", "absolute"); This.css ("top", ($ (window). Height () - this.height ()) / 2 + $ (window) .scrollTop () + "px"); This.css ("left", ($ (window). Width () - this.width ()) / 2 + $ (window) .scrollLeft () + "px"); This return; }  

and insert a div on the page:

   

and all external links like:

  & lt; An id = "link" href = "page.html" & gt; My link & lt; / A & gt;  

Conclusion:

I convert all the links to work on the tap event.

I hope this solves your problem.

/ div>

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -