Create Form from Javascript

Hi,

Is it possible to create a form using only javascript?

Thanks,

Ken

Just curious - a Form is a very Delphi-centric way of structuring code. Why would you want to create one out of thin air using JavaScript? You can of course instantiate an existing Delphi form. And you can create JavaScript objects and HTML elements, so not sure what the purpose would be here? I'll leave it to the TMS folks for a more specific answer, just not sure why this would ever come up?

I want to use it as both a regular form and a popup but for the pupup I want to display it in a DevExtreme popup,.

Wrap form creation in a Pascal function and call this function from JS?

2 Likes

Thanks Bruno. I will have to make a few adjustments but basically that works.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.