The popup form opens correctly, but when the OK button is pressed the JS logic to perform the ajax request fails with the error: "Object doesn't support this property or method." Here is the JS code:
function
CloseRadWindowPostback(sArgument) {
ctl00_ctlAjaxManager.ajaxRequest(sArgument); // failure occurs here
var oWindow = GetRadWindow();
oWindow.close();
}
Just to be clear, the value "sArgument" is set to a string, and for the sake of testing I have eliminated the jQuery find logic, and used the clientID of the ajax manager control directly in the JS code.
The dialog form is created with a Master page containg the RadAjaxManager control, and viewing the source of the dialog form shows that the ajax manager object exits:
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ctlScriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$ctlAjaxManagerSU'], [], [], 90);
//]]>
</script>
<!-- 2010.2.826.35 --><div id="ctl00_ctlAjaxManagerSU">
<span id="ctl00_ctlAjaxManager" style="display:none;"></span>
Why is the ajaxRequest code failing?