Director Javascript Library (Document! X Sample)
(Global) Namespace / Router type / dispatch Method
Method to invoke handlers for within the Routing Table
Path within the Routing Table to match
Invoked once all route handlers have been called.
In This Topic
    dispatch Method
    In This Topic
    Dispatches the route handlers matched within the Routing Table for this instance for the specified method and path.
    Syntax
    var instance = new Router();
    var value; // Type: Boolean
    
    // Parameters
    var method; // Type:  String
    var path; // Type:  String
    var callback; // Type:  Any
    
    value = instance.dispatch(method, path, callback);
    function dispatch( 
       method : String,
       path : String,
       callback : Any
    ) : Boolean;

    Parameters

    method
    Method to invoke handlers for within the Routing Table
    path
    Path within the Routing Table to match
    callback
    Invoked once all route handlers have been called.
    Browser Compatibility
    8
    5
    5
    See Also

    Reference

    Router type