Director Javascript Library (Document! X Sample)
(Global) Namespace / Router type / on Method
Method to insert within the Routing Table (e.g. on, get, etc.)
Path within the Routing Table to set the route to
Route handler to invoke for the method and path.
In This Topic
    on Method
    In This Topic
    Adds the route handler for the specified method and path within the Routing Table.
    Syntax
    var instance = new Router();
    
    // Parameters
    var method; // Type:  String
    var path; // Type:  String
    var route; // Type:  String
    
    instance.on(method, path, route);
    function on( 
       method : String,
       path : String,
       route : String
    ) : void;

    Parameters

    method
    Method to insert within the Routing Table (e.g. on, get, etc.)
    path
    Path within the Routing Table to set the route to
    route
    Route handler to invoke for the method and path.
    Browser Compatibility
    8
    5
    5
    See Also

    Reference

    Router type