KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: New Command to handle 4D Ajax Framework requests
PRODUCT: 4D Web 2.0 Pack | VERSION: 1.2 | PLATFORM: Mac & Win
Published On: November 19, 2007

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

The 4D Ajax Framework version 1.2 introduces a new command that can be used to conveniently replace a test for ‘dax’ in the requested URL within the On Web Connection method. The new command is called "DAX_Dev_IsDAXCommand".

Previously your On Web Connection code might look like this:

Case of
 : (($url_t="DAX@") | ($url_t="/DAX@"))
   DAX_Dev_OnWebConn ($url_t;$header_t;$clientIP_t;$serverIP_t;$user_t;$pass_t)
Else
 ` handle non-DAX requests in other cases or here
 `---------------------------------------------------

End case


With this new command you can now make a call like this:

Case of
 : (DAX_Dev_IsDAXCommand ($url_t))
   DAX_Dev_OnWebConn ($url_t;$header_t;$clientIP_t;$serverIP_t;$user_t;$pass_t)
Else
 ` handle non-DAX requests in other cases or here
 `---------------------------------------------------

End case


For the latest information the 4D Ajax Framework please see the Daxipedia:

http://daxipedia.4d.com