Toolkit

TK.Page

Load (HTML) Page using Ajax

Load content using Ajax. By default all script tags are executed and forms are changed to use Ajax as well.

{
    _: TK.Page,
    Url: "ExamplePage.html",
    ExecuteScripts: true, // Default, executes all script tags
    ChangeForms: true // Default, change forms to submit using ajax
}

Load Template using Ajax

{
    _: TK.Page,
    Url: "ExamplePage.txt",

    // Optionally, overriding the template with another template is also possible:
    Template: {
        style: {
            backgroundColor: "#FEE"
        }
    }
}