This topic is locked

use an onchange handler in a lookup wizard field

11/22/2010 7:41:49 AM
PHPRunner General questions
A
aptivus author

Hello everyone,

I have a table of countries and I use a lookup wizard to populate a select dropdown box.

I would like to be able to control the behaviour of other fields of the form by using this event handler:

onchange="showProv();"


in the select dropdown box.

Usually this code can be written in line in the "select" declaration, but what in PHPRunner?

How could that be achieved?

Thank you
Francesco

Sergey Kornilov admin 11/22/2010

You need to use Javascript API for this purpose. Here is an example of doing this:

http://xlinesoft.com/phprunner/docs/ctrl_on.htm

A
aptivus author 11/22/2010

is this API available for 5.2 as well?

I am not on the 5.3 yet and i cannot switch it now because i'm afraid of incompatibilities
Francesco

Sergey Kornilov admin 11/23/2010

Yes, the same API is available in version 5.2 as well.