hi all
I've some problems in binding html elements.
This is the thread I open in forum, attached
you can found the my source project.
https://forum.lazarus.freepascal.org/index.php/topic,59432.0.html
The strange is: inside doRun I call BindElements and seems it
works.
Inside the OnClick event of a button, the bind is not valid
anymore and I need to bind again before using components.
- procedure TMyApplication.doLoginClick(aEvent: TJSEvent);
- begin
- Writeln('doLoginClick');
- // BindElements; // <- uncomment and all works!
- writeln('edtEmail.Value = ', edtEmail.value); // <- this give the error
- DoServerLogin(edtEmail.Value,edtPassword.Value);
- end;
So, why the bind is not persistent and I need to bind again
before use a component in OnClick event?
Any idea?
Thanks
nomorelogic
-- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus