w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

createSpinner method is not defined

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

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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...

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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

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

createSpinner method is not defined

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).

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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.

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

createSpinner method is not defined

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?

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

createSpinner method is not defined

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

Return to “Issues”