Page 1 of 2

createSpinner method is not defined

Posted: Thu May 16, 2013 12:20 pm
by w

Progress just updated from Tiggzi to Appery.

Suddenly I get the javascript error that "createSpinner is not defined". Did appery change the name of the createSpinner method?
If I don't use the createSpinner method now, no spinner is shown in my entire application, and I use a lot of service requests that used to show a spinner.

Also to show an invisible textinput with Appery('txtText').show(); is not working anymore. Appery('txtText').html() or Appery('txtText).prop('outerHTML') is showing empty, while in Firebug I can clearly see this:

precode
<input id="j_242" class="mobiletextinput3 ui-input-text ui-body-b" type="text" data-mini="true" data-theme="b" tabindex="13" value="" dsid="txtText" name="txtText" style="display: block;" placeholder="Naam van nieuwe favoriet">
/code/pre

Was there changed something in the code?


createSpinner method is not defined

Posted: Thu May 16, 2013 1:04 pm
by Kateryna Grynko

Hi,

We deleted JavaScript function "createSpinner" from Appery. You would need to use standard JQM widget instead of it: http://api.jquerymobile.com/page-load...
For example:
codeshowSpinner({text: 'Loading data &#46;&#46;&#46;', textVisible:true, theme: 'b'} );/code


createSpinner method is not defined

Posted: Thu May 16, 2013 1:32 pm
by w

Ok thank you. But is it possible to communicate radical changes like that in the future please?


createSpinner method is not defined

Posted: Thu May 16, 2013 2:26 pm
by Kateryna Grynko

Yes, follow us and stay tuned.

Twitter: http://twitter.com/apperyio
Facebook: http://facebook.com/apperyio
Blog: http://appery.io/blog
Docs: http://appery.io/docs


createSpinner method is not defined

Posted: Thu May 16, 2013 2:35 pm
by w

And isn't the spinner showing anymore when I don't use a showSpinner? It used to show automatically when a rest service was executed no?

I put this in the page load event: showSpinner({text: "loading...", textVisible:true, theme: 'a'} );
Next in the page load event is executed a rest service. In the success event i put: hideSpinner();

But no spinner is shown.

When I put an "alert("show spinner") just after the showSpinner call, then I can see my alert, with behind it the spinner. But it then immediately disappears when effectively loading the page. There is a 2 second delay in which definetively the spinner should be shown.

Even if I delete the hideSpinner call, I do not see a spinner...


createSpinner method is not defined

Posted: Thu May 16, 2013 2:38 pm
by w

I do not see changelogs or specifics about changed function calls in these documents...


createSpinner method is not defined

Posted: Thu May 16, 2013 5:36 pm
by Maryna Brodina

Hello! When page loads spinner shows automatically (you can delete your code and leave alert on page load event - there will be spinner under alert). When the page is loaded spinner hides (it doesn't matter is it your spinner or spinner which calls by default). To get it working place the code
codeshowSpinner({text: "loading&#46;&#46;&#46;", textVisible:true, theme: 'a'} );/code on page Show event (not page Load).


createSpinner method is not defined

Posted: Thu May 16, 2013 6:21 pm
by w

Thank you, but there are 2 services that are called in the page load event, not in the page show event. So the spinner should show during page load event.

Because now there is a 3 second delay that everything on the page is visible, but the selectmenus are not populated because the service is working. And it is during this delay that I would want a spinner. I can not do it during the page show, because then the services would load with every page show, and they have to load only once, because once the selectmenus are populated, the values in the selectmenus don't change anymore.


createSpinner method is not defined

Posted: Thu May 16, 2013 7:37 pm
by w

showSpinner is not shown in page load nor page show. When in a click event, with exactly the same code, it is working.
But I need it in page load and page show...

Can you check if it's a bug on your side please?


createSpinner method is not defined

Posted: Thu May 16, 2013 7:40 pm
by Maryna Brodina

Sure, we are working on it. I'll update.