Page 1 of 1

why not working code to navigate page popupdemo???

Posted: Mon Feb 03, 2014 10:27 am
by pritu patel

var arr = JSON.parse(localStorage.getItem("CityArray"));
try {
if ({}.toString.call(arr) !== "[objectArray]")
{

Code: Select all

     var city=localStorage.getItem("c"); 

 if (arr.indexOf(city) !== -1) 
   {          
alert(true); 
   Appery.navigateTo('popupdemo.html', {transition: 'none'}); 

}
else
{
alert(false);
//$.mobile.changePage("pop.html", {transition: "pop"});
}

Code: Select all

 } 

else
{
alert("array null");
}
} catch ( e ) {
alert(e);
}

i write this line Appery.navigateTo('popupdemo.html', {transition: 'none'}); to open popup page but it's not working...
please help me to solve this problem


why not working code to navigate page popupdemo???

Posted: Mon Feb 03, 2014 10:58 am
by pritu patel

soryy for this question...

but change code
Appery.navigateTo('popupdemo');
instead below line
Appery.navigateTo('popupdemo.html', {transition: 'none'})

this working..


why not working code to navigate page popupdemo???

Posted: Mon Feb 03, 2014 11:48 am
by Kateryna Grynko

Hi Pritu,

Let us know if you have any further problems.