Log In    |    Knowledge Base    |    4D Home
Tech Tip: Allow Automatic Login to HTML page with 4DAF objects
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.1 | PLATFORM: Mac & Win
Published On: July 2, 2007

PLEASE NOTE: This Tech Tip applies to 4D Web 2.0 Pack version 1.1

When embedding 4DAF objects into a custom HTML page, it is necessary for the users to log in to the framework as they access the page. To make the log in automatic, the following code can be added in the BODY element of the HTML page:

<body onload="Login('Guest','');" onunload="dax_bridge.logout();">

Here, log in and log out procedures are specified for the OnLoad and OnUnload attributes of the BODY element.

The final step is to make this Guest user a valid 4DAF user (if they are not already). To do so, add the following line to Dav_DevHookLogin:

The user Guest will now allowed access to the framework.

For the latest information on Web 2.0 Pack please go to: