This file, in addition to the script file references, has three HTML tags, two of which are input elements and the third is a <span/> element. When the browser is displayed, one can enter values into the two text boxes (assumed numerical values, no validation has been set up). When the boxes get blurred (when you step out of the box after typing in the value), the function is evaluated and the result gets written to the <span/> element.
One of the objectives in writing this tutorial was to introduce our readers to CFAjax. Another objective was to explain why some of the examples in the download may not work immediately. A detailed step-by-step procedure for creating a virtual directory referencing the downloaded directory has been described. The place where the user function needs to be appended is also shown using the virtual directory so created. An extremly simple example was chosen to highlight the use of the CFAjax code as related to its constituent external script files. Template reference of <cfinclude> is not referenced absolutely; some examples may require this to be changed as well. I thank James Holmes for showing clear documentation for the DWREngine._execute() method.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |