JQuery Mobile: error with mobile.pageLoading ()

With jquery.mobile-1.0rc1 ; getting errors when working in a simple dialog -

Chrome error message

Uncaught TypeError: Object #<Object> has no method 'pageLoading' 

& in FF -

 $.mobile.pageLoading() is not a function 

Here is a snippet of code -

 $(document).delegate('#importCCRLink', 'click', function() { $(this).simpledialog({ 'mode' : 'bool', 'prompt' : 'Are you sure to import?', 'useModal': true, 'buttons' : { 'OK': { click: function () { showTempLoading(); }, theme: "p" }, 'Cancel': { click: function () { //alert('Cancel'); } } } }) }) function showTempLoading() { $.mobile.pageLoading(); } 

- any idea!

+4
source share
1 answer

Remove the call to $.mobile.pageLoading() and replace it with $.mobile.showPageLoadingMsg() and $.mobile.hidePageLoadingMsg() .

+15
source

Source: https://habr.com/ru/post/1381018/


All Articles