NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on August 24, 2011, 01:27:45 AM

Title: Using onClick JavaScript instead of URL or procedure call
Post by: Thys on August 24, 2011, 01:27:45 AM
Hi,

On a display field I am calling another procedure. But I remember that it may be possible to call the same procedure using JavaScript (in which I can do a bit more than just opening the procedure). But in the OnClick tab this option is always disabled. How can I use this - or is it not available?

Thys
Title: Re: Using onClick JavaScript instead of URL or procedure call
Post by: Bruce on August 24, 2011, 10:37:42 PM
On a form right?
Field type "Display" ?
OnClick tab?
at the bottom is an option
"onClick: [JavaScript]"

This option is disabled if the URL or Procedure options are set.
ie when clicked you can either
a) call a hand-coded URL or
b) Call a Procedure (like a browse or form) or
c) Execute some JavaScript.

Actually, since (a) and (b) are really just pre-determined JavaScript calls, the last option is a superset of the other two, however you would need to make the necessary call yourself at the end of your code.

Cheers
Bruce