Setting Loading Message duration in Jquery Mobile -
I get jQuery mobile For example, when the user updates my profile on the database, I use it; I want to set the time the message is displayed on the screen. Can someone help me? Thank you You can set this function as defined by Omar. But generally we use the functionality of this loading to keep the users waiting for all back end network delays and operations. I think that you are running at the local level so you are not seeing these delays, so specifying a clear timeout function is probably not the best thing you want. For example, if you use AJAX requests to update the database to update, get the feedback back and hide it from loading the success. $ The user using the mobile.loading () method, I am also using a function:
function show_screen_msg (msg) {$ .mobile.loading (' Show ', (text: msg, text, visual: truth, text: true}); } Show_screen_msg ('OK');
$ Ajax ({type: "POST", url: "some.php", data: {name: "John", location: "Boston"}} .one (function (msg) {// warning ("Data saved: "+ Msg); $ .mobile.loading (" hide ");});
Comments
Post a Comment