What you want to do is split them up... Provide a success function for your request to call when it returns, and then take action based on the response.
i.e.
$.ajax({
type: 'POST',
url: 'formService.asmx/RemoveFieldOption',
contentType: 'application/json; charset=utf-8',
data: "{'fieldId':'1', 'optionId':'1'}",
dataType: 'json',
success: action_removeFieldOptionPass,
error: ajaxTestFail
});
function action_removeFieldOptionPass(result) {
$('#whatever').html(result);
}
Fosco
2010-08-12 17:50:40