function GetMidArticleAd(sAdPageName, sAdPagePosition, blRotatingAd)
{
$('#middlearticlead').html('');
$.ajax({
type: "POST",
url: "../../LocalServices.asmx/GetAdByPagePosition",
data: "{'AdPageName': '" + sAdPageName + "', 'AdPagePosition': '" + sAdPagePosition + "', 'RotatingAd': '" + blRotatingAd + "' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
AjaxSucceeded(msg);
},
error: AjaxFailed
});
function AjaxSucceeded(result) {
$('#middlearticlead').html(result.d);
}
function AjaxFailed(result) {
alert(result.status + ' ' + result.responseText);
}
}
function GetMidArticleAdById(sId)
{
$.ajax({
type: "POST",
url: "../../LocalServices.asmx/GetAdById",
data: "{'AdId': '" + sId + "' }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
AjaxSucceeded(msg);
},
error: AjaxFailed
});
function AjaxSucceeded(result) {
$('#middlearticlead').html(result.d);
}
function AjaxFailed(result) {
alert(result.status + ' ' + result.responseText);
}
}
Hotels find savings, other benefits, in the cloud