Rebinding jquery events to return html -


I am using jquery and have problems with binding to return data from web server as data html Coming back.

What happens here ....

  1. The user clicks on a link and a dialog box opens up the AddToCurrent button on a click event. .
  2. The user submits data to the web server and the return data () is called on the return data.
  3. Try to reboot AddToCurrent does not happen on the button in new data.

What I am trying to do is the basics of the code given below. If you have any suggestions, let me know.

  function bind ad groupbuttons () {$ ("# addToCurrent"). Click (function () {warning ("here")}); $ (". LinkButton") (function () {$ .get ("someURL", function (data) {$ ('# addGroupModal') .html (data); $ ('# addGroupModal'). "Open"); binded groupbutton ();});}); / *** Callback Function Dialog Post ** / Function ReturnFreamAid (Data) {$ ('# AdGroup Model'). Html (data); BindAddGroupButtons (); }  

This is what I am trying to do ....

  1. Create a modal dialog that displays a form to the user.
  2. Validate the data after authenticating the form.
  3. If the data is good, then return the user to the original page of the dialog and update the field (like a table).
  4. If the data is bad, then the user will report an error in the open modal dialog. Allow them to correct and resubmit the data.

Meet all the users on other forums, this is easy. Then they show a line of code but I can not get it to work I would like to see a working example.

I'm afraid that I can not fully understand what you try to be. It looks like you want to add an item to a DOM dynamically added item. You can usually do this by using plug-ins that supports the latest version of JQuery.


Comments