Software Support Documentation
Example: Standard login-form with Javascript browser detection

Example

Standard login-form with Javascript browser detection.

- The following example allows the user to manually specify their username, domain and password. ---

Using Javascript the login page can automatically default to the most suitable Webmail interface for the users browser.

To enable this feature, the following Javascript can be added to the *bottom* of the login-page ( must be on the bottom to correctly parse the login form )

<script language="JavaScript" src="http://demo.atmail.com/javascript/browsercheck.js"></script>

<select name="LoginType">
<option value="simple">Simple (Any browser)</option>
<option value="xp">Advanced (IE6+)</option>
</select>

The order of the LoginType select box is important - The browsercheck.js will select the most appropriate interface by the array-index of the select-box.

To test the login-script, use the login-name 'login' , password 'testing'
Username and Domain:
@

Password:


MailServer:


Protocol:


Interface:


Language:


877-4-ATMAIL (Sales) +1 773-451-8334 (USA) +61 245-730745 (Australia)

home | email server | webmail client | email appliance | antivirus | anti spam | groupware | secure email | email admin | email sms | purchase | FAQ | support | KB | Blog | sitemap