Hi,
I m new to jquery. I'm trying to use JQuery to call some action of controller by Ajax/$.getJSON . I'm trying to pass a custom value into the Ajax callback method, but this not executed. I use debugger but not getting error. This is my code:-
function getAllRecords(sub,code) {
fetching = true;
$.getJSON("/Search/SearchResultsJson/?sub=" + sub + "&code=" + code + "&callback=?", function (data) {
debugger;
alert('result')
setupDone = true;
fetching = false;
$("#mapOverlay").hide();
$("#loadingLabel").hide();
if (firstSearch) {
distanceWidget = new DistanceWidget({
map: map,
distance: 1,
maxDistance: 4,
color: '#000000',
activeColor: '#5599bb',
sizerIcon: 'Images/resize-off.png',
activeSizerIcon: 'Images/resize.png'
});
i use debugger but it not executed inside function(data).
Thanks