![]() |
|
sfJqueryPlugin - 0.0.6symfony sample plugin |
|
![]() |
4
users
Sign-in
to change your status |
Integration of Jquery |
This plugin is dead. Please use the sfJqueryReloadedPlugin instead to get new updates and compatibility with Symfony 1.2+
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> taruof |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.3stable | MIT license | 1.0.3stable | 22/10/2008 |
| 1.0.2stable | MIT license | 1.0.2stable | 07/10/2008 |
| 1.0.1stable | MIT license | 1.0.1stable | 07/10/2008 |
| 0.0.8beta | MIT license | 0.0.8beta | 10/11/2007 |
| 0.0.7beta | MIT license | 0.0.7beta | 16/10/2007 |
| 0.0.6beta | MIT license | 0.0.6beta | 15/10/2007 |
| 0.0.5beta | MIT license | 0.0.5beta | 11/10/2007 |
| 0.0.4beta | MIT license | 0.0.4beta | 10/10/2007 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.3stable | MIT license | 1.0.3stable | 22/10/2008 |
| 1.0.2stable | MIT license | 1.0.2stable | 07/10/2008 |
| 1.0.1stable | MIT license | 1.0.1stable | 07/10/2008 |
| 0.0.8beta | MIT license | 0.0.8beta | 10/11/2007 |
| 0.0.7beta | MIT license | 0.0.7beta | 16/10/2007 |
| 0.0.6beta | MIT license | 0.0.6beta | 15/10/2007 |
| 0.0.5beta | MIT license | 0.0.5beta | 11/10/2007 |
| 0.0.4beta | MIT license | 0.0.4beta | 10/10/2007 |
The sfJqueryPlugin offers helpers that integrate the Jquery Javascript framework.
Warning: This plugin is in Alpha state. Syntax is subject to change.
Jquery is offering an easy API, very well documented and can be a good replacement for the Prototype framework wich's used by default on symfony Javascript's helper.
And since Jquery comes with its powerfull JqueryUI to do effects easily, there's no need to implement scriptaculous.
The integration of sfJqueryPlugin is made simple, developers will have to use the new jQuery helper and prefix the old prototyped methods with jq_.
So the prototyped method:
will get this new Jquery form:
Install the plugin
$ symfony plugin-install http://plugins.symfony-project.com/sfJqueryPlugin
Alternatively, if you don't have PEAR installed, you can download the latest package attached to this plugin's wiki page and extract it under your project's plugins/ directory
Download the jquery file from www.jquery.com and put it in
web/js/jq/jquery.js
Clear the cache
$ symfony cc
Inside the template
From settings.yml
standard_helpers: jQuery
To use Jquery methods, refer to Chapter 11 Ajax Integration, all***** methods described on the chapter can be used with the jq_ prefix.
Below are complete syntax for ready to use methods in the jQuery Helpers.
jq_periodically_call_remote($options = array())jq_link_to_function($name, $function, $html_options = array())jq_link_to_remote($name, $options = array(), $html_options = array())jq_update_element_function($element_id, $options = array())jq_form_remote_tag($options = array(), $options_html = array())jq_submit_to_remote($name, $value, $options = array(), $options_html = array())jq_javascript_tag($content)These are the methods reconverted into jQuery functions till the sfJqueryPlugin last version, future changes will integrate more functions.
