Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Click Event fails to fire.

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Click Event fails to fire.

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Click Event fails to fire.

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.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Click Event fails to fire.

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Click Event fails to fire.

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 '/' - '/'

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Click Event fails to fire.

Hi Katya,

Thanks for your assistance,

Regards,
Joe

Return to “Issues”