Stefan, thank you.. and for the ajax validation? On Wed, Feb 10, 2010 at 1:10 AM, Stefan Paschke <[email protected]>wrote:
> Hi Samuel > > this is pretty straightforward. Install the sfJqueryReloaded plugin for the > jQuery functionality. This gives you the jq_link_to_remote() and > jq_form_remote_tag() functions (that actually replace previous prototype > functions from symfony 1.0). Both functions are wrappers to jQuery.ajax, the > parameters allow you to specify the id of a html element that you wish to > replace with the return of the ajax calls. For the actions, you just create > regular symfony actions. Instead of returning a view in a separate > success.php file, you can return the view from the action, with > > return $this->renderPartial( 'module/partial', array( 'param' => $param ) > ); > > This is documented nicely somewhere, but I forgot where :-) Now to submit > the form and add a new entry to the list, I usually reload the entire block > that contains list and form, with the new entry added to the list, and an > empty form. To delete an entry from the from, you could just replace the > block that contains the form. Sometimes, it may also be appropriate to write > a jQuery function that removes one row from the list and sends a delete call > to the server which is not answered. > > regards > > Stefan > > > On Feb 10, 2010, at 5:48 AM, Samuel Morhaim wrote: > > > Absalon, thank you.. this shed some light... and I got part of it > working, however I am still having issues. > > > > I managed to display the list and the form on the same screen, and > submiting it side by side, it adds a new record to the table (by refreshing > the entire page.. ) > > > > I still have issues how to execute the remote and also, how to do ajax > validations. Using Symfony 1.4. > > > > It seems since they removed it remote on 1.4, and the manual doesn't talk > much about it its hard to find information (at least for me). > > > > Anyone? > > > > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. 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.
