Nick Doulgeridis Nick Doulgeridis - 5 days ago 6
Ajax Question

Symfony 1.4 Ajax

I want to make a form on ajax in Symfony Framework. The problem is the only way I found is with jquery and .load function. But with this way how to pass post values? I don't want hardcode anything so be flexible, but how make ajax submission form in symfony 1.4 with post data? How pass input posts in the load function?

Thanks a lot.

Answer

.load is fine. You can grab the values of the form with jquery.

http://www.ryancoughlin.com/2009/05/04/how-to-use-jquery-to-serialize-ajax-forms/

The only issue is that you will have to bind the form manually yourself(in the controller). I consider that the bigger issue :P

Comments