I'm trying to use $.mobile.loading in a HTML page (jQuery Mobile) before an AJAX request, but it's not working (it's not showed when user enters in this page).
This is my source code:
$(document).on('pagecreate', '#page_products', function(e){
//Shows Loading Popup
$.mobile.loading("show",{text: "Loading...", textVisible: true });
$.ajax({
url: URL,
type: "GET",
dataType: "JSONP",
async: true,
success: function(json, status){
//source code for success response
//[...]
//hide loading popup
$.mobile.loading('hide');
return true;
},
contentType: "text/xml; charset=\"utf-8\""
});
});
< /code>
Примечания: < /strong> < /p>
Если я положил $. Mobile.loading < /strong> Inside Ajax Success Response, это показано! /> Есть идеи, в чем проблема или другое решение? < /p>
>
Подробнее здесь: https://stackoverflow.com/questions/191 ... nst-showed
Jquery mobile - $ .mobile.showpageLoading msg (); не показывает ⇐ Jquery
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
YII, как показать пользовательский MSG с ошибкой с помощью проверки сбой MSG
Anonymous » » в форуме Php - 0 Ответы
- 2 Просмотры
-
Последнее сообщение Anonymous
-