It is important to understand that AJForm accepts certain parameters in its <script> reference. You will most likely need to set only one parameter, although AJForm WILL run without any parameters set. Here is the basic syntax for referencing AJForm and setting a parameter:
<script type="text/javascript" src="ajform/ajform.js?option=value"></script>
Where option is the parameter name, and value is the paramter value. As of right now, possible parameters are:
AJForm works 100% in any web server environment regardless of the server architecture used. HOWEVER, when dealing with forms containing file uploads, AJForm needs included AJForm server scripts to run BEST, but it can still work successfully without them.
If AJForm DOES use the server scripts, then your client-side javascript code will be able to receive the response from the server. If AJForm does NOT use the server scripts, your client-side javascript code will NOT be able to receive the response form the server.
As of right now, the supported server platforms are:
In the next release of AJForm, the following server platforms will also be available:
The following values are available for the server option:
Please note that AJForm DOES depend on prototype.js (which is included with the AJForm bundle), but you DO NOT need to reference prototype.js in your html. If you DO WANT to reference prototype.js in your html, you still may do so. The homepage for prototype.js may be found here.
<script type="text/javascript" src="ajform/ajform.js?server=php"></script>
<script type="text/javascript" src="ajform/ajform.js?server=none"></script>
<script type="text/javascript" src="ajform/ajform.js"></script>