Hi,
In DesktopModules\SetupProject\SetupProject.ascx i have a textbox which i want to have the auto-completion functionality. and i have used below jquery and its working fine outside dnn as a standalone web project. But in dnn it gives an error "
"NetworkError: 500 Internal Server Error - http://localhost/dnn/CallSys/GroupList.asmx/FetchGroupIDList"
asmx is located in DesktopModules\SetupProject\GroupList.asmx and code behind of it in "~/App_Code/SetupProject/GroupList.cs"
i used below js code, please help me on this.
How we can call asmx method in a module, if so how to state the url. if asmx is not needed then what are the other options. Highly appreciate for your support.
$(function () {
$(".tb").autocomplete({
source: function (request, response) {
$.ajax({
url: "GroupList.asmx/FetchGroupIDList",
data: "{ 'groupname': '" + request.term + "' }",
dataType: "json",
cache: false,
type: "POST",
contentType: "application/json; charset=utf-8",
dataFilter: function (data) { return data; },
success: function (data) {
response($.map(data.d, function (item) {
return {
label: item.GroupName,
value: item.ID
}
}))
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
extStatus);
}
});
},
select: function (event, ui) {
var selectedObj = ui.item;
$('#uniID').val(selectedObj.value);
return false;
},
minLength: 1
});
});