AJAX Success function called continously
I have this function that is called on a click of a row in a table:

function GetScheduleIDFromName(SchedName) {
	
    try {
        DataService.RunServerSideDataQuery('GetScheduleIDFromName', SchedName,
            function (JSONResult) {
                AJAXSuccess(JSONResult);
            },
            function (errorMessage) {
                alert('Error requesting data from AJAX Data Service : ' + errorMessage.get_message());
                return false;
            }
        );
    }
    catch (e) {
        alert('Error attempting AJAX call to GetScheduleIDFromName with ' + SchedName + '\nError: ' + e.description);
    }
}

what is happening is the function AJAXSuccess is called in perpetuity.

I put an alert at the beginning of GetScheduleIDFromName, it is called just one time. It seems that AJAX is sending continuous success responses, the first response is correct and I get the proper data back, all subsequent responses are incorrect (with blank data).

This works fine in development (of course), any idea what could be causing it?

Thank you for any assistance.
Jon
AJAX Success function called continously
===

I have this function that is called on a click of a row in a table:

function GetScheduleIDFromName(SchedName) {
	
    try {
        DataService.RunServerSideDataQuery('GetScheduleIDFromName', SchedName,
            function (JSONResult) {
                AJAXSuccess(JSONResult);
            },
            function (errorMessage) {
                alert('Error requesting data from AJAX Data Service : ' + errorMessage.get_message());
                return false;
            }
        );
    }
    catch (e) {
        alert('Error attempting AJAX call to GetScheduleIDFromName with ' + SchedName + '\nError: ' + e.description);
    }
}

what is happening is the function AJAXSuccess is called in perpetuity.

I put an alert at the beginning of GetScheduleIDFromName, it is called just one time. It seems that AJAX is sending continuous success responses, the first response is correct and I get the proper data back, all subsequent responses are incorrect (with blank data).

This works fine in development (of course), any idea what could be causing it?

Thank you for any assistance.
Jon