This message is to notify you that your ticket has been submitted.
Ticket ID: 1748-7424031751
Message:
----------------------------------
I have the following code:
$('#r_0_0').blur(function() {
var x = $('#r_0_0').val();
var y="#d_0";
$(y).empty();
$.get("apps/P5001/call/LineItems.lasso?LITM=" + x + "&Line=" +
'r_0_0' + "&TEST=" + y,function(data2){
$(y).empty();
$(y).append(data2);
},"html");
$('#addnew').click();
});
The last line "#addnew" is adding a new line to a html table, and the
other code is updating a div with information from a database call. It
is all processing correctly, except the "addnew" is running before the
database query.
How can I get the "addnew" to wait for the prior commands to finish?
----------------------------------
To check the status of this ticket, visit:
http://www.infiniteskills.com/helpdesk/index.php?action=ticket&id=MTc0OC03NDI0MDMxNzUx&ide=anF1ZXJ5LWVuQGdvb2dsZWdyb3Vwcy5jb20=