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

How to create custom ajax spinner?

I create a spinner createSpinner("/files/views/assets/image/ajax_loader.gif");

I made a dummy page with the image ajax_loader.gif on it.

I can get to the dummy page, look into the html to find the image URL and use this in the createSpinner.
But this does not work for a native app. The image should be included in the app, and I should use a sort of URL that is getting the image from the local app, not from an internet URL.

Can you help me?

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

How to create custom ajax spinner?

Hello! Use Appery.getImagePath(name) instead of path to the image. Here is more information http://docs.appery.io/javascript-api/...

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

How to create custom ajax spinner?

The createspinner call is on a javascript page. How can I be sure that it will be called after the image was loaded first?

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

How to create custom ajax spinner?

Hi,

You can call createSpinner before loading the image. The image will be loaded when it's needed.
If you definitely have to call javaScript code after loading the image then you can use "Page Show" event.

Return to “Issues”