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?