![]() |
|
sfJqueryReloadedPlugin - 1.1.6sfJqueryReloadedPlugin offers helpers that integrate the jQuery Javascript framework. |
|
![]() |
299
users
Sign-in
to change your status |
Easy integration of jQuery |
This is a reloaded version of the sfJqueryPlugin wich is compatible with all stable versions of Symfony, including Symfony 1.4.
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> taruof |
| Version | License | API | Released |
|---|---|---|---|
| 1.4.3stable | MIT license | 1.4.2stable | 06/08/2010 |
| 1.4.2stable | MIT license | 1.2.4stable | 06/08/2010 |
| 1.4.1stable | MIT license | 1.4.1stable | 09/07/2010 |
| 1.4.0stable | MIT license | 1.2.4stable | 15/12/2009 |
| Version | License | API | Released |
|---|---|---|---|
| 1.4.3stable | MIT license | 1.4.2stable | 06/08/2010 |
| 1.4.2stable | MIT license | 1.2.4stable | 06/08/2010 |
| 1.4.1stable | MIT license | 1.4.1stable | 09/07/2010 |
| 1.4.0stable | MIT license | 1.2.4stable | 15/12/2009 |
| Version | License | API | Released |
|---|---|---|---|
| 1.4.3stable | MIT license | 1.4.2stable | 06/08/2010 |
| 1.4.2stable | MIT license | 1.2.4stable | 06/08/2010 |
| 1.4.1stable | MIT license | 1.4.1stable | 09/07/2010 |
| 1.4.0stable | MIT license | 1.2.4stable | 15/12/2009 |
| 1.2.4stable | MIT license | 1.2.4stable | 15/04/2009 |
| 1.2.3stable | MIT license | 1.2.3stable | 10/03/2009 |
| 1.2.2stable | MIT license | 1.2.2stable | 23/10/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 1.1.6stable | MIT license | 1.1.6stable | 23/10/2008 |
| 1.1.5stable | MIT license | 1.1.5stable | 22/10/2008 |
| 1.1.4stable | MIT license | 1.1.4stable | 22/10/2008 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.6stable | MIT license | 1.0.6stable | 23/10/2008 |
| 1.0.5stable | MIT license | 1.0.5stable | 22/10/2008 |
| 1.0.4stable | MIT license | 1.0.4stable | 22/10/2008 |
The sfJqueryReloadedPlugin offers helpers that integrate the Jquery Javascript framework.
Please report all bugs to Fourat Zouari
This plugin is licensed under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
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 sfJqueryReloadedPlugin is made simple, developers will have to use the new jQuery helper and prefix the old prototyped methods with jq_.
So the prototype method:
<?php echo link_to_remote(....);?>
will get this new Jquery form:
<?php echo jq_link_to_remote(....);?>
Install the plugin
$ symfony plugin-install http://plugins.symfony-project.com/sfJqueryReloadedPlugin
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
You can choose to put the jQuery library somewhere alse, but then you'll need to customize the app_sfJQueryPlugin_library_path setting in your app.yml.
Inside a template
In settings.yml, for all modules
standard_helpers: jQuery
To use Jquery methods, refer to Chapter 11 Ajax Integration, all helper functions 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 sfJqueryReloadedPlugin last version. Future changes will integrate more functions.
http://trac.symfony-project.com/wiki/AjaxAndJSON#jsonwithoutheader and:
'@delete')),
'dataType' => 'json',
'success' => 'leaveGroup(request)')) ?>
sprintf for string manipulationcomplete callback$ by jQueryjq_remote_function().jq_remote_function().method parameter and data serialisation in jq_remote_function.