director
on Method
Adds the route handler for the specified method and path within the Routing Table.
Syntax
var instance; // Type: Router; 
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

 

 


© 2013 All Rights Reserved.

Send comments on this topic.