RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebForm.AddElements Method

Used internally to generate any javascript declarations needed by the form.

Pascal
procedure AddElements(AddIntf: IAddScriptElements);
C++
__fastcall AddElements(IAddScriptElements AddIntf);

The InternetExpress page producer calls AddElements when it generates the block of javascript declarations in its HTML document. This method allows the generated form to use javascript classes and methods. 

AddElements calls on the virtual ImplAddElements method, which uses the provided interface to return javascript declarations. Each TWebForm descendant overrides ImplAddElements to add any declarations it needs. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!