KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Simple Integration of the 4D Ajax Framework and Active4D
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.0 | PLATFORM: Mac & Win
Published On: February 27, 2007

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

In order to integrate the 4D Ajax Framework into a 4D database that uses Active4D you must add some extra code in the database method 'On Web Connection'. Specifically you will need to add a check for '/DAX/@' requests, for example:


` =======================
` On Web Connection
C_TEXT($1;$2;$3;$4;$5;$6)

If ($1="/DAX/@")
DAX_Dev_OnWebConn($1;$2;$3;$4;$5;$6)
Else
` Do Any Active4D specific tasks here
End if
` =======================


This will allow for both 4D Ajax Framework and Active4D requests to be processed correctly.