Business Insurance


$(‘#dvArticleList div:last’).load(articleListUrl + “?articleListType=” + 2 +”&pageIndex=” + $(‘#dvArticleList div’).length);

//$(‘#dvRightArticleList’).empty();
//$(‘#dvRightArticleList’).append(”);
//$(‘#dvRightArticleList div:last’).load(articleListUrl + “?mainCategoryID=” + encodeURI(“Risk Management”) + “&subCategoryID=” + “” + “&articleListType=” + 1 +”&pageIndex=” + $(‘#dvRightArticleList div’).length);

//$(‘#dvSignleArticleList’).empty();
//$(‘#dvSignleArticleList’).append(”);
//$(‘#dvSignleArticleList div:last’).load(articleListUrl + “?mainCategoryID=” + encodeURI(“Risk Management”) + “&subCategoryID=” + “” + “&articleListType=” + 1 +”&pageIndex=” + $(‘#dvSignleArticleList div’).length);

//$(‘#dvNewsLetter’).empty();
//$(‘#dvNewsLetter’).load(upcomingEventUrl);

//$(‘#dvUpcomingEvents’).empty();
//$(‘#dvUpcomingEvents’).load(upcomingEventUrl);

//$(‘#dvFeaturedArticles’).empty();
//$(‘#dvFeaturedArticles’).load(featuredArticleListUrl + “?tagId=329”);

//$(‘#dvFeaturedVideos’).empty();
//$(‘#dvFeaturedVideos’).load(featuredVideoUrl);

//$(‘#dvFeaturedNativeAds’).empty();
//$(‘#dvFeaturedNativeAds’).load(featuredNativeAdUrl);

$(‘#dvPeopleContent > div’).empty();
$(‘#dvPeopleContent > div’).load(PeopleURL);
$(‘#dvUpClose > div’).empty();
$(‘#dvUpClose > div’).load(UpCloseURL);
$(‘#dvViewFromTop > div’).empty();
$(‘#dvViewFromTop > div’).load(ViewFromTheTopURL + “?tagId=30”);

$(‘#dvOffBeatStoriesContent > div’).empty();
$(‘#dvOffBeatStoriesContent > div’).load(featuredArticleListUrl + “?tagId=522&pageIndex=1&pageSize=10”);

$(‘#dvArchiveContent > div’).empty();
$(‘#dvArchiveContent > div’).load(featuredArticleListUrl + “?tagId=523&pageIndex=1&pageSize=5”);

$(‘#dvSponsorInsight’).empty();
$(‘#dvSponsorInsight’).load(sponsorInsightUrl);

$(‘#dvFeaturedDirectories’).empty();
$(‘#dvFeaturedDirectories’).load(featuredDirectoriesUrl);

$.get(‘/Home/GetReadersPoll’, function (response) {

var options = “”;

if (response != null && response.length > 0 && !response[0].IsAlreadyAnswered) {

$(‘#PollQuestion’).text(response[0].Question);

$.each(response, function (index, obj) {
options = options + “

  • ” + obj.OptionText + “
  • ” }); $(‘#hdnPollQuestionID’).val(response[0].PollQuestionID); $(‘#PollOption’).append(options); $(‘#dvReaderPoll’).show(); } }); }); function fnshowMostRecent(obj) { $(‘.articletabs li.selected’).removeClass(‘selected’); $(obj).parent(‘li’).addClass(‘selected’); $(‘#dvArticleList’).empty(); $(‘#dvArticleList’).append(”);
    $(‘#dvArticleList div:last’).load(articleListUrl + “?articleListType=” + 2 +”&pageIndex=” + $(‘#dvArticleList div’).length);
    return false;
    }

    function fnshowMostPopular(obj) {
    $(‘.articletabs li.selected’).removeClass(‘selected’);
    $(obj).parent(‘li’).addClass(‘selected’);
    $(‘#dvArticleList’).empty();
    $(‘#dvArticleList’).append(”);
    $(‘#dvArticleList div:last’).load(articleListUrl + “?articleListType=” + 3 +”&pageIndex=” + $(‘#dvArticleList div’).length);
    return false;
    }

    function fnshowCoronaVirus(obj) {
    $(‘.articletabs li.selected’).removeClass(‘selected’);
    $(obj).parent(‘li’).addClass(‘selected’);
    $(‘#dvArticleList’).empty();
    $(‘#dvArticleList’).append(”);
    $(‘#dvArticleList div:last’).load(articleListUrl + “?articleListType=” + 5 +”&pageIndex=” + $(‘#dvArticleList div’).length);
    return false;
    }

    function fnLoadMoreArticles(obj, articleListType) {
    var dvName = $(obj).parents(‘div’).eq(1).attr(‘id’);
    $(‘#’ + dvName).find(‘.cmnlist:last li:last’).attr(‘style’, ‘border-bottom:1px solid #cccccc !important’);
    $(‘#’ + dvName).append(”);
    $(‘#’ + dvName).find(‘div:last’).load(articleListUrl + “?articleListType=” + articleListType + “&pageIndex=” + $(‘#dvArticleList div’).length);
    $(obj).parent().remove();
    return false;
    }

    function fnLoadMoreStories(obj, tagID) {
    var dvName = $(obj).parents(‘div’).eq(1).attr(‘id’);
    //$(‘#’ + dvName).find(‘.cmnlist:last li:last’).attr(‘style’, ‘border-bottom:1px solid #cccccc !important’);
    $(‘#’ + dvName).append(”);
    $(‘#’ + dvName).find(‘div:last’).load(FeaturedArticlesLoadMore + “?tagId=” + tagID + “&pageIndex=” + ($(‘#’ + dvName + ‘ div’).length) + “&pageSize=4”);
    $(obj).parent().remove();
    return false;
    }

    function fnSubmittRegistrationPopup() {
    var isValid = true;

    if ($(‘#txtFirstName’).val().trim() == “”) {
    isValid = false;
    $(‘#txtFirstName’).css(‘border-color’, ‘red’);
    }
    else if ($(‘#txtLastName’).val().trim() == “”) {
    isValid = false;
    $(‘#txtLastName’).css(‘border-color’, ‘red’);
    }
    else if ($(‘#txtEmail’).val().trim() == “”) {
    isValid = false;
    $(‘#txtEmail’).css(‘border-color’, ‘red’);
    }
    else if ($(‘#txtCompanyName’).val().trim() == “”) {
    isValid = false;
    $(‘#txtCompanyName’).css(‘border-color’, ‘red’);
    }
    else if ($(‘#ddlJobFunction’).val().trim() == ‘0’) {
    isValid = false;
    $(‘#lblJobFunctionRequired’).show();
    }
    else if ($(“#ddlBusinessIndustry”).val().trim() == ‘0’) {
    isValid = false;
    $(‘#lblBusinessIndustryRequired’).show();
    }

    if ($(‘#txtEmail’).val().trim() != “”) {
    var EmailRex = /^(([^()[]\.,;:s@”]+(.[^()[]\.,;:s@”]+)*)|(“.+”))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$/;

    if (!EmailRex.test($(‘#txtEmail’).val())) {
    isValid = false;
    $(‘#lbInvalidEmail’).show();
    }
    else {
    $(‘#lbInvalidEmail’).hide();
    }
    }

    if (isValid) {
    $.post(
    ‘/Article/RegistrationPopup’,
    {
    firstName: $(‘#txtFirstName’).val().trim(),
    lastName: $(‘#txtLastName’).val().trim(),
    email: $(‘#txtEmail’).val().trim(),
    companyName: $(‘#txtCompanyName’).val().trim(),
    jobFunction: $(‘#ddlJobFunction’).val().trim(),
    businessIndustry: $(“#ddlBusinessIndustry”).val().trim()
    },
    function (response) {
    if (response) {
    $(‘#dvRegPopup’).hide();
    }
    }
    );
    }
    }

    function fnCloseRegPopup() {
    $.post(‘/Article/UpdatePopupCloseCount’, function () {
    $(‘#dvRegPopup’).hide();
    });

    }

    function fnTrackLink(label, url, target) {
    $.post(
    ‘/Home/TrackButtonClicks’,
    {
    linkName: label,
    guestUserID: getCookie(“GuestUser”),
    url: url
    },
    function () {
    if (target == “”){
    window.location.href = url;
    }
    else{
    window.open(url);
    }
    });
    }

    function fnAnswerReaderPoll() {

    if ($(‘input[name=rdoPollOptions]:checked’).length > 0) {
    $(‘#btnPollAnser’).attr(“onclick”, “”).unbind(“click”);
    $(‘#lblPollRequired’).hide();
    $.post(‘/Home/AnswerReaderPoll’, {
    questionID: $(‘#hdnPollQuestionID’).val(),
    optionID: $(‘input[name=rdoPollOptions]:checked’).val(),
    answer: $(‘input[name=rdoPollOptions]:checked’).attr(‘answer’),
    page: ‘home’
    }, function (response) {
    if (response.status) {
    debugger;
    //$(‘#PollQuestion’).hide();
    $(‘#PollOption’).hide();
    $(‘#btnPollAnser’).hide();
    //$(‘#lblPollSuccessMessage’).show();
    var html = “

      “;
      $.each(response.pollResult, function (index, obj) {
      html = html + “

    • ” + obj.OptionText + ” “+ obj.PollPercentage + “%” + “
    • “;
      });

      html = html + ‘

    ‘; $(‘#dvPollPercentage’).append(html); $(‘#dvPollPercentage’).show(); } }); } else { $(‘#lblPollRequired’).show(); } }

    Source

    0 Replies to “Business Insurance”