Page 1 of 1

save picture

Posted: Thu Jun 19, 2014 2:42 am
by Nureddin Akpinar

Hello

I'm changing the pictures of the components

Image

Press back when I come back the picture disappears

Image

What do you have to make sure you don't lose the image

I'm using the following code for each component:

var array = ["mevcut.png", "yok.png", "yemekci.png", "nobetci.png", "izinli.png", "hasta.png", "bos.png1399409886286"];
var fileId = parseInt(localStorage.getItem("bir")) || 0 ;
if (fileId === (array.length - 1,2,3,4,5,6,7)){
fileId = 0;
}
Apperyio("mobileimage_410_822").attr("src", Appery.getImagePath(array[fileId]));
localStorage.setItem("bir",fileId+ 1);


save picture

Posted: Thu Jun 19, 2014 4:09 am
by Yurii Orishchuk

Hi Nureddin.

It's hard to say what is wrong in in your app with information you have gave us.

So please give us your app public link and describe steps to reproduce your problem.

Regards