Telegram_2024-09-23T10

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2024 > 09 > 23 >

Telegram_2024-09-23T10

Telegram link

 

2024-09-23T10:56:40

 

As per my little knowledge, What is wrong with just attaching it to the IWTimer event handler like below? ??

 


 

Telegram link

 

2024-09-23T10:57:03

 

procedure TIWForm1.IWTimer1AsyncTimer(Sender: TObject; EventParams: TStringList);

 

var JScriptStr: string;

 

begin

 

JScriptStr := 'console.log(\Hello\);'; // script which is attached to the button onoclick ScriptEvent! WebApplication.CallBackResponse.AddJavaScriptToExecute(JScriptStr);

 

end;

 

u could use a global variable for the script to use it anywhere u want.