Cold Fusion provides custom tags (cftags) that generate dynamically html code. To integrate Cold Fusion with Alkaline simply insert the query form in a standard .cfm page. Such page containing query results is again a dynamic .cfm file (i.e. queryrisults.cfm), containing the following cftags (replace with your server and port number):
<cfhttp method="POST" url="http://www.server.com/search/search.html" port="9999"> <cfhttpparam name="search" value="#search#" type="FormField"> <cfhttpparam name="quant" value="#quant#" type="FormField"> |
<cfoutput> #CFHTTP.FileContent# </cfoutput> |
In this way the end user does not make a direct http request to Alkaline. The http request is made by Cold Fusion itself to the Alkaline server, that can reside in the same computer as Cold Fusion or on another computer. This also overcomes the limitations that arise if you are running your Alkaline server behind a firewall that stops any reques to other than those to port 80.
This example is courtesy of www.inea.it and has been tested with Cold Fusion 4.5.