Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form Plugin Form Reference On Success callback

 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have this HTML that is being generated by JSTL at the server. The number of forms depends on the number of items
enrolled in DB. Each form has output div that will be the target of the JSON response


Now, I used ajax to submit the form. I used the Jquery Form Plugin.
My problem is, how can I get reference to the submitted form object on the success callback so that I could only update the
correct output div?



Any idea please? Thanks.
 
Mark Reyes
Ranch Hand
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

After spending some time on the net, I found this link.
Exactly discusses what I need.



The $form is what I am looking form.
I got messed up with the responseText and JSON response thing.
I should better read the document carefully next time.

Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic