![]() |
| Frontier Tutorials / Writing an ObjectNotFoundHandler / About The Examples |
To work through the following examples, you should create a new mainResponder website named "onfhTutorial", so that you don't risk damaging an existing website:
Create a new guest database (GDB) named "onfhTutorial.root" in Frontier's Guest Databases:www folder (that's Guest Databases\\www if you're on Windows), using the File->New->Object Database command.
Create a new website table named "onfhTutorial" in onfhTutorial.root, using the Web->New Website... command.
Delete the entry named "item #1" at the top of your new GDB.
Open the #prefs table of your new website, and make sure you have the following preference settings defined: fileExtension="" and imageExtensions=false.
Open config.mainResponder.sites. Create a new address entry there named "onfhTutorialX", set its value to @onfhTutorial, and change its name to "onfhTutorial".
For the first three examples, we'll set #objectNotFoundHandler to the address of a handler script. You'll see why when we get to Mixing Modes.
You are now ready to work through the individual examples. We'll start with a mode 1 example.