Difference between revisions of "Ns register adp"

From AOLserver Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
'''SYNOPSIS'''
 
'''SYNOPSIS'''
  
: '''ns_register_adp''' ''?-noinherit? method URL adpfile ?args?''
+
: '''ns_register_adp''' ''?-noinherit? method URL adpfile''
  
 
'''DESCRIPTION'''
 
'''DESCRIPTION'''
  
:Similar to Registered Procedures, all requests to a particular URL can be captured but in this situation processing can be performed by an ADP file. Giving additional functionality of being able to make  
+
:Similar to Registered Procedures, all requests to a particular URL can be captured but in this situation processing can be performed by an ADP file. Giving additional functionality of being able to make changes a lot more rapidly.  
changes a lot more rapidly.  
 
  
 
:This also provides a method of making view controls at ADP level rather than at TCL level, which keeps development at an appropriately abstracted level.
 
:This also provides a method of making view controls at ADP level rather than at TCL level, which keeps development at an appropriately abstracted level.
  
Example:
+
:Example:
  
 
  ns_register_adp GET /myurl/* d:/pages/myadp.adp
 
  ns_register_adp GET /myurl/* d:/pages/myadp.adp
  
Both registered ADP pages, and registered procedures will be called
+
:Both registered ADP pages, and registered procedures will be called irregardless of to original requested target existing or not.
irregardless of to original requested target existing or not.
 
  
 
[[Category:Documentation]] [[Category:Core Tcl API]]
 
[[Category:Documentation]] [[Category:Core Tcl API]]

Latest revision as of 00:17, 4 October 2009

NAME

ns_register_adp - Register an adp file for a method/URL combination

SYNOPSIS

ns_register_adp ?-noinherit? method URL adpfile

DESCRIPTION

Similar to Registered Procedures, all requests to a particular URL can be captured but in this situation processing can be performed by an ADP file. Giving additional functionality of being able to make changes a lot more rapidly.
This also provides a method of making view controls at ADP level rather than at TCL level, which keeps development at an appropriately abstracted level.
Example:
ns_register_adp GET /myurl/* d:/pages/myadp.adp
Both registered ADP pages, and registered procedures will be called irregardless of to original requested target existing or not.