Excellent explanation, should be part of docs. Thank you.
An event may be EITHER processed on client side OR on server side OR ignored.
What you might do is process event on client side and, in your javascript function, based on a form property, decide whether event should be sent to server or not.
You might write something like:
I want to do something simple with js, but I seem to be missing something.
In a VFP method connected to an event I can do this:
return "cooljsunction(param1,param2)
But mostly what we need to do is in the code of a method, test for something and then call js if needed. So I created a method on the form called js1. In that method I have:
if thisform.wlhtmlgen
return "cooljsfunction(param)"
endif
Then in my app somewhere in a method, I have:
if condition1
x=x=2
else
thisform.js1()
endif
What am I doing wrong?