05-08-2018, 11:42 PM
Have you checked the browser console window for errors (F12 - dev tools - Console tab)?
also, have you checked the network tab (in the same dev tools area) to see if your JavaScript file loaded correctly from server?
About your question, you can execute it like this (This is one of the ways. Actually there are several different ways to accomplish the same thing):
procedure TIWForm1.OnRender(Sender: TObject);
var
JS: string;
begin
JS := 'yourjsfunction("somestringparameter", 2, 20, "another string parameter");';
AddToInitProc(JS);
end;
also, have you checked the network tab (in the same dev tools area) to see if your JavaScript file loaded correctly from server?
About your question, you can execute it like this (This is one of the ways. Actually there are several different ways to accomplish the same thing):
procedure TIWForm1.OnRender(Sender: TObject);
var
JS: string;
begin
JS := 'yourjsfunction("somestringparameter", 2, 20, "another string parameter");';
AddToInitProc(JS);
end;