Welcome Guest, Not a member yet? Register   Sign In
jQuery AJAX Success Callback
#2

[eluser]CroNiX[/eluser]
It looks like addPopUp::validate() just returns text, like 'success'. How about return a json object with the status and the id. Then it looks like you would just pass the id to loadClient()?

Either that or I assume you are passing the ID somehow in your form? If so, you could just grab the id from there and just:
Code:
if (html=="success") {
    closePopUpBox();
    var id = $('#form-element-with-id').val();
    loadClient(id);
}


Messages In This Thread
jQuery AJAX Success Callback - by El Forum - 01-19-2012, 12:49 PM
jQuery AJAX Success Callback - by El Forum - 01-19-2012, 01:04 PM
jQuery AJAX Success Callback - by El Forum - 01-19-2012, 01:19 PM
jQuery AJAX Success Callback - by El Forum - 01-19-2012, 01:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB