Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Start javascript on opening page
#2
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;
Reply


Messages In This Thread
Start javascript on opening page - by mrhappy - 05-08-2018, 01:22 PM
RE: Start javascript on opening page - by Alexandre Machado - 05-08-2018, 11:42 PM
RE: Start javascript on opening page - by mrhappy - 05-10-2018, 12:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)