JScript 8.0 Code Macro Example

The following example demonstrates the use of JScript 8.0 in SXML. JScript 8.0 is a modern scripting language with a wide variety of applications. It is a true object-oriented language, and yet it still keeps its "scripting" feel. JScript 8.0 maintains full backwards compatibility with previous versions of JScript, while incorporating great new features and providing access to the common language runtime and .NET Framework.

For more information on JScript 8.0 see also http://msdn.microsoft.com/en-us/library/72bd815a.aspx.

Smartsite SXML CopyCode image Copy Code
<se:code language="JScript">
class Class1 extends Smartsite.Core.Module
{
    function Execute()
    {
        this.Result.Append("Hello JScript world!");
    }
}
</se:code>
Example Result CopyCode image Copy Code
Hello JScript world!