NoNameZ
NoNameZ

Reputation: 795

Page loading window with jquery mobile

I found this tip http://jquerymobile.com/test/docs/pages/loader.html, but when i trying to use it i receive

TypeError: $.mobile.loading is not a function

Have any ideas?

Upvotes: 0

Views: 128

Answers (1)

Apostolos Emmanouilidis
Apostolos Emmanouilidis

Reputation: 7197

The example you are mentioning refers to an older jQuery mobile version.

As stated in the current jQuery Mobile Doc, the equivalent method is:

$.mobile.showPageLoadingMsg (method)

Arguments:

  • theme (string, default: "a") The theme swatch for the message.
  • msgText (string, default: "loading") The text of the message.
  • textonly (boolean, default: false) If true, the "spinner" image will be hidden when the message is shown.

Upvotes: 1

Related Questions