When an error occurs in the intraweb program, it jumps out of the atozed company page, making our program look less professional. The following is an article from the Internet:
How to customize the error screen in intraweb
In order to have intraweb display your error page instead of the default one, you must take the following steps:
Create a file named "iwerror.html"
Fill it with something like this:
<HTML>
<Head> <title> da error is in da house </title> <Body>
<P align = "center">
<P>
<H3> beware the mighty Error !!! </H3>
</Body>
</Html>
Place iwerror.html in the application "templates" folder.
Use the following placeholders inside, wherever you want them:
{% Atozedlogo %} to display the atozed logo
{% Intraweblogo %} to display the intraweb logo
{% Content %} to display the exception message
{% Appaddress %} to display the application address
{% Exceptionspecific %} to display an exception specific explanation (only a few are defined)
{% Appname %} to display the application name
Do not use single quotes
The file iwerror.html is output via Javascript. Make sure you don't have single quotes in it, or else you'll end in a javascript error.
Bytes ------------------------------------------------------------------------------------------------
How to customize error pages of intraweb.
To enable intraweb to display your error page, rather than the default one, you must follow the steps below:
Create a file named "iwerror.html"
Write the following code:
<HTML>
<Head> <title> da error is in da house </title> <Body>
<P align = "center">
<P>
<H3> beware the mighty Error !!! </H3>
</Body>
</Html>
Put iwerror.html in the "templates" folder of the project.
You can use the text in the following placeholder ({%}) Anywhere (including {%} in use })
{% Atozedlogo %} displays atozed logo
{% Intraweblogo %} displays intraweb logo
{% Content %} displays exception messages
{% Appaddress %} shows the application address (URL address)
{% Exceptionspecific %} displays exception details (only some are defined)
{% Appname %} displays the application name
Do not use single quotes (in files)
The iwerror.html file is output through JavaScript. Make sure that there are no single quotes in your file, otherwise your page will be terminated in a javascript error (unable to output ).
--------------------------------------------------------------------