Page 1 of 1

Click Event fails to fire.

Posted: Mon Dec 10, 2012 9:56 pm
by Joe Bohen

Hi,
The click event for a button is not working! This is probably something simple but I am not able to find anything that would cause it such as bad syntax in the code. The click event for a button on my app just won't fire! I have shared the app to support are you able to check this out for me.
Regards,
Joe


Click Event fails to fire.

Posted: Mon Dec 10, 2012 10:15 pm
by maxkatz

Which exact button in your app doesn't work? What are the steps to reproduce the problem?


Click Event fails to fire.

Posted: Mon Dec 10, 2012 10:38 pm
by Joe Bohen

The button in question is named 'logoffbtn' on the jobs page. I placed a second button on the page which showed exactly the same lack of response, I placed a break point in google chrome on the script but this does not fire either.


Click Event fails to fire.

Posted: Mon Dec 10, 2012 10:48 pm
by Joe Bohen

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;
}


Click Event fails to fire.

Posted: Tue Dec 11, 2012 9:41 am
by Kateryna Grynko

Hello,
There is a problem with JS assets. It's caused by JS code turning into one line. To make your app work you can delete all the comments in 'Map' asset or change symbols '//' to '/' - '/'


Click Event fails to fire.

Posted: Tue Dec 11, 2012 10:56 am
by Joe Bohen

Hi Katya,

Thanks for your assistance,

Regards,
Joe