Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

how to show an ajax loader with text when a page loads

Hi
I want to show an ajax loader with a text when a page loads till the time every thing on that page gets loaded.

Please tell me how to achieve this..!!!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to show an ajax loader with text when a page loads

Hello! Please check loader widget options here http://api.jquerymobile.com/loader/

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

how to show an ajax loader with text when a page loads

Hi Maryna,
I have already read that but m not getting how to implement this in appery. If possible can you pls provide me a simple code snippet.

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

how to show an ajax loader with text when a page loads

Hi Katya,
I referred the link which you gave. Now i m able to get ajax loader on the screen but still i m not getting the text message.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

how to show an ajax loader with text when a page loads

Hello!
Try this code pre$.mobile.loading( "show", {
text: "",
textVisible: true,
theme: "b",
html: "<p>Some text here</p>"
});/pre or this to change spinner view pre$&#46;mobile&#46;loading({ html: '<span class="ui-icon ui-icon-loading"><img src="jquery-logo&#46;png" /><h2>is loading for you &#46;&#46;&#46;</h2></span>' });/preBesides that you can customize message using CSS the way you need.

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

how to show an ajax loader with text when a page loads

This i have to write on page load rite?

And also pls tell me how to stop this loader once page loads completely?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

how to show an ajax loader with text when a page loads

Hello Asif,

Please read here events definitions http://docs.appery.io/documentation/w...
Please try on Before load event. This should stop when the page is loaded.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

how to show an ajax loader with text when a page loads

Maryna, the first code snippet works for me on the (opening) page load event, but not on the before load event. What am I missing?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

how to show an ajax loader with text when a page loads

Hello Robert,

Unfortunately before load event doesn't work now. We reported this as a bug and working on it.

Return to “Issues”