Hi, I am currently developing an application using Symfony. So far it has gone reasonable well but I hit a snag today that has me stumped.
I have a form displayed on the screen and I am using the observe_field () helper to make an ajax call to a function that updates a calculation and returns the result to a partial to render a new chart. I've reviewed the manual and the forum and as far as I can tell I am using the helper right but nothing is happening when the form field is changed. I should point out here that I am observing multiple fields (but not all) of the form. This is the code: <?php echo observe_field('patronage_curve_type', array( 'url' => 'patronage/updatechart', 'update' => 'dynamic_chart', 'with' => "'curve_type=' + value&patronage_id=".$patronage- >patronage_id ))?> The element 'patronage_curve_type' is located in a partial that is located before the javascript call in the template. The following js files are loaded in the template: <script type="text/javascript" src="/sfJqueryReloadedPlugin/js/ jquery-1.2.6.min.js"></script> <script type="text/javascript" src="/js/FusionCharts/ FusionCharts.js"></script> <script type="text/javascript" src="/sfProtoculousPlugin/js/ prototype.js"></script> I have <script type="text/javascript"> //<![CDATA[ jQuery.noConflict(); //]]> </script> at the bottom of the page between the </body> and </html> tags (its in the layout file) I tried using manual javascript but still no joy in getting the update. I checked whether the problem was with the action by using echo 'ajax call made" break; at the top of the action and this didn't produce an error message. My development environment is Windows XP, Eclipse PDT. I am using Firefox 3.1 Beta 2 as the browser. I've run out of things to try. Does anyone have any idea of what could be wrong or what I am doing wrong? Thank you. Regards, Simon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---