Example:
function ajaxMyControl()
{
this.Init = RequestableControlInit;
this.Render = function MyControlRender(output)
{
var portletid = this.portlet.GetId();
output.Push("<div id=\"MyControlContainer"+this.id+portletid+
"\" class=\"FscMyControl\">...</div>");
};
this.GetFscArgs = function MyControlGetFscArgs()
{
if (this.fscargs === undefined) {
var container = window.document.getElementById(this.id+
this.portlet.GetId());
this.fscargs = new VAPPArgs(null, ";"+this.portlet.GetObject()+";;"+
this.data.GetAttrdef()+";"+this.data.GetFscargs(), this, container);
}
return this.fscargs;
};
}