|
<< Click to Display Table of Contents >> Navigation: Classes > THandlers > Methods > AddRootHandler |
SIGNATURE=IW.Content.Handlers.THandlers.AddRootHandler@string@string@TContentBase
ETYPE=Method
Declaration:
Delphi: |
public class function AddRootHandler(const aPath: string; const aDocument: string; aHandler: TContentBase): TContentBase; |
C++: |
public: __fastcall TContentBase AddRootHandler(const String aPath, const String aDocument, TContentBase aHandler); |
Description: The root handler covers a very specific situation: 1- User navigates to a specific URL address with a registered content handler, e.g.: http://localhost:8888/redform.html 2- User then edits the URL (in the browser) removing the document info, e.g.: http://localhost:8888/ and submits it -> This always generates a GET request, not AJAX. In this case, we shouldn't execute the active form but instead redirect it to the root handler. All other cases can be handled by a specific content handler