﻿// JScript File
var arrWebRequests = new Array;
function CAjax() {

}

CAjax.prototype.CreateWebRequset = function(strServerData, CallBackFunction, strClientData, strResURL, bAsync) {
    var oProperties = new Object();
    oProperties.type = 'POST';
    oProperties.timeout = 5000;
    oProperties.contentType = "application/json; charset=utf-8";
    oProperties.error = OnRequest_Error;
    oProperties.url = strResURL;
    oProperties.data = strServerData;
    //data: "{}",
    oProperties.success = OnRequest_Success;
    oProperties.complete = CallBackFunction;
    oProperties.dataType = "jsonp";
    oProperties.async = false;
    oProperties.jsonp = CallBackFunction;
   // oProperties.jsonpCallback = CallBackFunction;

   // var oWebrequest = $.ajax(oProperties);
    
//    
     $.getJSON(strResURL + "&Data=" + strServerData + "&format=json&jsoncallback=?",CallBackFunction);

//    var j = "hi";
//    alert(j);
//});

// $.getJSON(strResURL + "&format=json&jsoncallback=?", OnRequest_Success);
    
//  $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?", OnRequest_Success);
    
}

function OnRequest_Success(data, textStatus) {

    var j = "";
}

function OnRequest_Error(xmlHttpRequest, textStatus, errorThrown) {

    

}