I have a program that needs to call ajaxRequest from client side.
When I use this code in any aspx page, it works fine.
But when I put it into a DNN module,the $find method always return null.
Is there any difference in DNN module?
var ajaxManager = null; |
function pageLoad() { |
if (ajaxManager == null) { |
ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); |
} |
} |
function SuccessHandler(privateToken, alias, message) { |
var datetime = new Date(); |
ajaxManager.ajaxRequest("(" + datetime.toLocaleTimeString() + ")"); |
} |