jquery $.Ajax 1.4.4 function not working in version 1.5
The following ajax function is working in jquery 1.4.4 but not in 1.5. I still didn't fully grasp the new features of $.ajax 1.5. What needs to be changed here. 

        function ReceiveAndShowResults(query) {
            var bingUri = BuildBingApiUri(query, offset);
            $.ajax({
                url: bingUri,
                success: OnResultsReceived,
                error: OnError,
                dataType: 'jsonp'
            });
        }
        function BuildBingApiUri(query, offset) {
            var bingApiUrl = "http://domain.com/json.aspx";
            var bingApiAppId = "12345";
            var bingApiImageCount = "25";
            var s = bingApiUrl + "?AppId=" + bingApiAppId + "&Sources=image&" + "&Query=" + query + "&Image.Count=" + bingApiImageCount + "&Image.Offset=" + offset + "&JsonType=callback&JsonCallback=?";
            return s;
        }
jquery $.Ajax 1.4.4 function not working in version 1.5
===

The following ajax function is working in jquery 1.4.4 but not in 1.5. I still didn't fully grasp the new features of $.ajax 1.5. What needs to be changed here. 

        function ReceiveAndShowResults(query) {
            var bingUri = BuildBingApiUri(query, offset);
            $.ajax({
                url: bingUri,
                success: OnResultsReceived,
                error: OnError,
                dataType: 'jsonp'
            });
        }
        function BuildBingApiUri(query, offset) {
            var bingApiUrl = "http://domain.com/json.aspx";
            var bingApiAppId = "12345";
            var bingApiImageCount = "25";
            var s = bingApiUrl + "?AppId=" + bingApiAppId + "&Sources=image&" + "&Query=" + query + "&Image.Count=" + bingApiImageCount + "&Image.Offset=" + offset + "&JsonType=callback&JsonCallback=?";
            return s;
        }