[SOLVED] fireEvent() is outdated in vanilla JavaScript, is it outdated in PHPRunner, too? |
10/26/2026 15:16:48 | |
| PHPRunner General questions | ||
|
G
GJB author
fireEvent() is outdated in vanilla JavaScript, and should be replaced with dispatchEvent(). Questions:
I have an Edit page with the following (which works, unless there's a better way to do it): 1 On the Designer tab, Edit page, set the initial "id_total_num_vertices" tag value to 0:
2 A Change field event, called
var content = ctrl.getValue();3 In the Edit page JavaScript OnLoad event, if the geom_json has an existing value when the Edit page is initially opened, set the "id_total_num_vertices" tag value by calling the Change event, var geom_json_ctrl = Runner.getControl(pageid, 'geom_json');PHPRunner 11.3, build 44417 |
||
|
|
Sergey Kornilov admin 10/27/2026 |
|
This is a different fireEvent(), a method of Javascript Control object in PHPRunner. It is not related in any way to one that deprecated a long time ago in vanilla Javascript. |
|
|
G
|
GJB author 10/28/2026 |
|
Thanks |
|