-
Notifications
You must be signed in to change notification settings - Fork 8
Home
raulriera edited this page Jul 12, 2011
·
17 revisions
Welcome to the Remote-Form-Helpers wiki:
This plugin will enable some forms (and views) helpers to use jQuery’s AJAX capabilities.
As Wheels takes control over the installation of plugins via the Plugin Manager, we will assume you went ahead and used that, now all you need to get your Controller’s actions AJAXifed is to do this simple steps:
- Copy from the /plugins/adapters/ the file you wish to use to your /javascripts folder and import that file into your application.
- Add the following line in your `config/settings.cfm` file:
<cfset addFormat(extension="js", mimeType="text/javascript")>
- Add the following line in your controller’s init function
<cfset provides("html,js")>
- Add remote=“true” argument to your `linkTo`, `buttonTo` and `startFormTag` to enable AJAX requests on them.
- Add `renderWith(yourObject)` to the controller’s action who will be responding to this request and you are good to go (this requires knowledge about ColdFusion on Wheels Provides Funcionality, please refer to the ColdFusion on Wheels docs for more info about this)
For some quick documentation and sample code of the, please visit the Functions section. After you are familiarized with the code, please refer to some advanced functionality like Callbacks