Share via


The JScript getContent Function

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

For Microsoft® JScript® content types, the dashboard factory must have a way to let the script generate content back to the factory. To make this possible, Web Parts with JScript type of content should make sure they include a function in the script called getContent.

function getContent(xmlndPart)
{
    var sContent = new String();
    //code to generate content into sContent
    return sContent;
}

See Also

Web Part Schema Properties | VBScript and JScript Content | The VBScript getContent Function