when using jquery mobile, and you load an invalid page, an error message is reported elegantly showing loading page failed(then fades out). Check out the attached image.
i want to use this ui to report my own custom error messages and animate them the way its done. any one had any experience doing this?
i would like to report some errors without using dialogs and this method seems appropriate. Can this be done using jquery and if please show the code.
In the latest 1.1.0 RC version you can use $.mobile.showPageLoadingMsg
to display custom error messages:
// show error message
$.mobile.showPageLoadingMsg( $.mobile.pageLoadErrorMessageTheme, $.mobile.pageLoadErrorMessage, true );
// hide after delay
setTimeout( $.mobile.hidePageLoadingMsg, 1500 );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With