NetTalk Central

Author Topic: Using onClick JavaScript instead of URL or procedure call  (Read 3215 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Using onClick JavaScript instead of URL or procedure call
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Using onClick JavaScript instead of URL or procedure call
« Reply #1 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