[symfony-users] Re: jq_submit_to_remote examples

2010-11-15 Thread Massimiliano Arione
On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com
wrote:
 Hi, guys, i want use jquery on my forms but i dont have idea how use this.

Stay away from any symfony plugin containing the word jQuery.
Just implement your form in the standard way, then add jQuery
javascripts as needed.
You can use jQuery form plugin  http://jquery.malsup.com/form/ or
anything else you prefer.

cheers
Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: jq_submit_to_remote examples

2010-11-15 Thread deepak
Hi

As suggested by Massimiliano Arione jQuery form plugin  http://
jquery.malsup.com/form/  is really good. I use the same with symfony
without any issue, and is very handy to use.

Thanks
Deepak

On Nov 15, 7:05 pm, Massimiliano Arione garak...@gmail.com wrote:
 On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com
 wrote:

  Hi, guys, i want use jquery on my forms but i dont have idea how use this.

 Stay away from any symfony plugin containing the word jQuery.
 Just implement your form in the standard way, then add jQuery
 javascripts as needed.
 You can use jQuery form plugin  http://jquery.malsup.com/form/or
 anything else you prefer.

 cheers
 Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: jq_submit_to_remote examples

2010-11-15 Thread guiguiboy
Hi,
I've never tried  http://jquery.malsup.com/form/ but I would give it a
try.

@Martin Ibarra Cervantes
In one of my application I use jq_form_remote_tag. Here is how it
works :

?php echo jq_form_remote_tag(array(
  'url'  = url_for('@my_route'), //the route where your
data will be POSTed
  'script'   = true, //do you want to use JS
in the response ?
  'update'   = form_result_div,//div that will be
updated by the response
  'loading'  = $('#indicator').show();, //action performed
while the request is being processed
  'complete' = $('#duplicate-indicator').hide();, //action
performed after processing the request
  'failure'  = alert('OMG : An error has ocuured.'); //
action performed when HTTP status is not in 2xx
  ),
  array('id' = 'my_form_id')  //id of your form
) ?
//form fields ...

/form

Then, in your action, just do as you would do with a regular sf form.

Hope that helps.


Guillaume


On 15 nov, 15:12, deepak deepakkumar...@gmail.com wrote:
 Hi

 As suggested by Massimiliano Arione jQuery form plugin  http://
 jquery.malsup.com/form/  is really good. I use the same with symfony
 without any issue, and is very handy to use.

 Thanks
 Deepak

 On Nov 15, 7:05 pm, Massimiliano Arione garak...@gmail.com wrote:

  On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com
  wrote:

   Hi, guys, i want use jquery on my forms but i dont have idea how use this.

  Stay away from any symfony plugin containing the word jQuery.
  Just implement your form in the standard way, then add jQuery
  javascripts as needed.
  You can use jQuery form plugin  http://jquery.malsup.com/form/or
  anything else you prefer.

  cheers
  Massimiliano



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en