Hi,

On an edit page, I call with link_to_remote() a new form to display.
That form is ajax submitted and works well.

I want to create observe_form() to refresh a chart from new entered
values.

Here is my code in the page displaying information relative to my
object Porosity :

include_partial('porosity_chart', array('project' => $project));

echo observe_form('porosity_form', array(
   'update' => 'porosity_chart',
   'url' => 'project/updatePorosityChart?id='.$project->getId(),
   'with'=> "Form.serialize('porosity_form')",
   'condition' => "$('porosity_form') == true",
   'script' => true
));


The partial _porosity_chart include the <div id="porosity_chart"></
div>

And if I do the refresh manually by clicking, the following
link_to_remote, it's working well :

echo link_to_remote('Rafraichir', array(
            'update' => 'porosity_chart',
            'url' => 'project/updatePorosityChart?id=2',
            'complete' => visual_effect('appear', 'porosity_chart')),
            array('class' => 'ajax_link'));



Any idea?

Many thanks.
simo



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to