Multiple form submit and retrieve results separately
There is a gallery website. I want users be able to submit comment for each item. Every six items load in one page and there is a form for each one. Form have to be sent to server-side and retrieve results(some simple messages) using ajax. I want results be printed instead of its related form.
I'm new to JQuery and trying so many ways but I have not found a solution yet. My framework is yii and I prefer to use setFlash method for show messages but it's not critical.
First I tried to do it using yii ajaxSubmitButton but it was very tricky.After that I got some widgets but they were not useful enough.I decided to do it with using JQuery-Ajax directly but I didn't find a way to print returned results instead of related form.
when i'm stuck with some code i throw it away and go to watch a movie or do something else not related with coding. when i come back to that code, often i can suddenly see the solution. try this ))
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread