I’m implementing an app to control time of productions. So, i have a very good timer clock with javascript code. basically i put onscriptinit my javascript code in a global variable, then assign the global variable to a field onload event.
is working nice, but I want to execute some queries when the timers are starting, stopped, etc. the problem is that when i try to call the php method in javascript button nothing happen, o when I try to call the javascript function on php button the message is that my javascript function is not defined. somebody has any idea to make this work?