Hi, I have a strange issue in that when I navigate to a page and the pageload event runs the below code to fill a dropdown and then leave that page I am unable to navigate back to it? It just freezes the application.
The code on pageload is....
var detsarr=localStorage.getItem('horseDetails');
var obj = JSON.parse(detsarr);
var horseID=localStorage.getItem('currentHorseID');
var dropDown = Appery("selectInCompany");
dropDown.empty();
alert('empty');
for (var i=0; i < obj.length; i++) { // loop through the array
if (obj._id != horseID){
dropDown.append($('' +obj.name +''));
}
}
dropDown.selectmenu("refresh");
alert('refresh');
If I remove this code it I can renavigate back as normal.