Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
call JS from Delphi code
#5
Unfortunately, WebApplication.ExecuteJS is not doing anything, if called during OnCreate of the form.

Even if I just call WebApplication.ExecuteJS('alert(...

It works fine on either Sync or Async clicks, for instance.

Is this a bug?  Does it work for anyone on any earlier IW versions?

(11-19-2024, 01:39 AM)iwuser Wrote: Unfortunately, WebApplication.ExecuteJS is not doing anything, if called during OnCreate of the form.

Even if I just call WebApplication.ExecuteJS('alert(...

It works fine on either Sync or Async clicks, for instance.

Is this a bug?  Does it work for anyone on any earlier IW versions?

Ha! Just discovered that form's own ExecuteJS does work in such cases, great!
Reply


Messages In This Thread
call JS from Delphi code - by iwuser - 11-11-2024, 07:30 AM
RE: call JS from Delphi code - by fishingtested - 11-11-2024, 09:26 AM
RE: call JS from Delphi code - by RenSword - 11-13-2024, 02:35 AM
RE: call JS from Delphi code - by iwuser - 11-13-2024, 05:37 AM
RE: call JS from Delphi code - by iwuser - 11-19-2024, 01:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)