I am trying to use the loading widget to show when some time consuming work is being done on my page. I modified the code on the demo page (), it works except for when I add a function call to the .onclick, it will not show up until after the called function is completed, which defeats the purpose entirely.
$('#fstart').on('click', function(e) {
$.mobile.loading( "show", {
text: 'Processing Schedule File.',
textVisible: 'true',
theme: 'a',
textonly: false
});
/* The loading window is closed by the called function */
handleProcessing();
})
What do I need to do to get the loading widget to pop up when I call it?
Thanks,
Eric