Humm I'm not using link_to_remote, but you can find an example of what
I did here :

http://code.google.com/p/piwam/source/browse/trunk/apps/front/modules/cotisation/templates/_form.php

At the end of this source file, you can find JS function using
ajaxupdater to update the "amount" text field.

Good luck,

Adrien

On 28 oct, 02:26, Martin Ibarra Cervantes <ibarra.cervan...@gmail.com>
wrote:
> i have a gallery with gallerific but when change the picture i need
> change the ID on my form its possible change the value with the ajax.
>
> <div id="description"></div>
>
> onClick="
>              <?php echo link_to_remote(array(
>                   'update' => 'description',
>                    'url'    => 'retratos/show?id='.$imagen->getId(),
>                    )) ?>
> "
>
> retratos the model
> show is the action and in the action i have this.
>
>  public function executeShow(sfWebRequest $request)
>   {
>         $this->form = new MrImagenComentarioForm();
>         $this->form->setDefault('id_imagen', $this->getParam( 'id'));
>         $this->setTemplate('show');
>   }
>
> id_imagen is i hidden in my form.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to