Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

javascript

$
0
0
javascript
FoxInCloud
javascript
02/12/2012
02:17:52 PM
3FJ0UNCM4 Show this entire thread in new window
Gratar Image based on email address
From:
To:
All 
Attachments:
None

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?


Viewing all articles
Browse latest Browse all 10393

Trending Articles