I have code in the load event of the page that validates local storage to see if the application has data from a previous session and if this information exists a grid element is hidden. I don't know if this is creating the issue as buttons on other forms are working correctly. The code is;
Code: Select all
var n =0;
for(var i=0; i < localStorage.length; i++){
var key = localStorage.key(i);
var val = localStorage.getItem(key);
if (key == 'driver') {
n +=1;
Tiggr('drivtxt').val(val);
}
if (key == 'mobile') {
n +=1;
Tiggr('teltxt').val(val);
}
if (key == '_reg') {
n +=1;
Tiggr('regtxt').val(val);
}
}
if(n =3) {
restservice1.execute({});
Tiggr('drivdetailGrid').hide();
Tiggr('logoffbtn').css('background' , 'red');
return;
}