How do you use jQuery?


Today we’ll look at the jQuery library and its implementation in an AF form.

You can load the library in two ways.

From a remote source.
JIf your library is already stored somewhere, for example on your hosting provider’s server, add the following code in the HEAD section of the HTML layout file:

<script type="text/javascript" src="your_library_address/jquery.js"></script>

You can also use publicly accessible locations, but you can’t control the library version or availability. If you use public locations, the line added to your HTML file could look like this:

<script type="text/javascript"

As an attachment In the JS directory of the Design tab add a library file, e.g. jquery.js. Add the following line in the HEAD section of your HTML file:

<script type="text/javascript" src="$js/jquery.js$"></script>

You can also add plug-ins or the jquery-ui library the same way. By implementing a library in customField controls using this method, you can create fields with sliders, for example. Implementing the jQuery library simplifies the management of dynamic content in a form layout and gives access to the wide-ranging functionality offered by the library and its extensions.

recent posts
3rd Apr 2014
Faster than ever!
5th Dec 2013
Live validation!
2nd Dec 2013
Features distilled
12th Mar 2012
Flicking Channels
26th Jan 2012
Your Own Error Page
9th May 2011
Box Properties
15th Apr 2011
Grouping Fields
13th Apr 2011
Form Versioning
24th Feb 2011
Form Access Modes
22nd Feb 2011
Required Fields
4th Feb 2011