‘ + tag.value_rts + ”); }); } else { //no result was found console.log(“head template not loaded.”); } } }); //end ajaxCall //*** //*** Load FiltersList //*** SiteNameSpace.ajaxCall({ url: “/JSON/FiltersList.json”, type: “GET”, parameters: “”, dataType: “json”, WebServiceResult: false, errorMessage: “Error: Unable to get FiltersList.json”, success: function (results) { if (results != null) { tagsList = results.Tags_rls; //will filters or head arrive on page first? $.each(tagsList, function (i, tag) { $(‘#ulExploreTags’).append(‘

  • ‘ + tag.value_rts + ”); }); } else { //no result was found console.log(“filters data not loaded.”); } } }); //end ajaxCall //*** //*** Load Achivement Highlights template //*** SiteNameSpace.ajaxCall({ url: “/includes/template/AchievementsHighlightsList.html”, type: “GET”, parameters: “”, dataType: “text”, WebServiceResult: false, errorMessage: “Error: Unable to get AchievementtsHighlightsList template”, success: function (results) { if (results != null) { //***set the site data $(“#AchievementHighlightsPane”).append(results); console.log(“AchievementtsHighlightsList template loaded.”); } else { //no result was found console.log(“AchievementtsHighlightsList template not loaded.”); } } }); //end ajaxCall //*** //*** Load Footer template //*** SiteNameSpace.ajaxCall({ url: “/includes/template/foot.html”, type: “GET”, parameters: “”, dataType: “text”, WebServiceResult: false, errorMessage: “Error: Unable to get foot template”, success: function (results) { if (results != null) { //***set the site data $(“#FooterPane”).append(results); console.log(“foot template loaded.”); } else { //no result was found console.log(“foot template not loaded.”); } } }); //end ajaxCall ]]]]]]]]>]]]]]]>]]]]>]]>
  • @text | ]]]]]]]]>]]]]]]>]]]]>]]> @text ]]]]]]]]>]]]]]]>]]]]>]]>

    @AlternateText_rst @Title_rst ]]]]]]]]>]]]]]]>]]]]>]]>

    @Title_rst ]]]]]]]]>]]]]]]>]]]]>]]> @Text_rst ]]]]]]]]>]]]]]]>]]]]>]]> 0) $(“#Head”).append(“”); if (resource.Metadata_Description_rst.length > 0) $(“#Head”).append(“”); if (resource.Keywords_rst.length > 0) $(“#Head”).append(“”); $(“#Head”).append(“”); //*** BreadCrumb list in top main column for (var i = 0; i < resource.BreadCrumbs_rls.length; i++) { var relatedItem = $('#breadCrumb-template').text(); relatedItem = relatedItem.replace("@Text_rst", resource.BreadCrumbs_rls[i].bcname_rst); relatedItem = relatedItem.replace("@URL_RST", resource.BreadCrumbs_rls[i].bcurl_rst); $("#lblBreadCrumbs").append(relatedItem); } //*** merge main content into tempate onto page $("#pageTitle").text(resource.Name_rst); $("#h1_detail__header").text(resource.Name_rst); $("#h2_detail__subtitle").text(resource.ByLine_rst); $("#div_detail__body").html(resource.Body_rst); //*** merge main image into tempate onto page var resourceImage = resource.Image_rob; if (resourceImage !== null) { var imageString = "“; $(“#div_detail__image”).append(imageString); $(“#div_detail__caption”).text(resourceImage.Description_rst); $(“#Head”).append(“”); }; //*** merge tags list into tempate onto page for (var i = 0; i < resource.Tags_rls.length; i++) { var tagsItem = $('#tagsItem-template').text(); tagsItem = tagsItem.replace("@title", resource.Tags_rls[i].shortName_rst); tagsItem = tagsItem.replace("@url", resource.Tags_rls[i].url_rst); tagsItem = tagsItem.replace("@text", resource.Tags_rls[i].name_rst); $("#divTagsList").append(tagsItem); } //*** merge related list into tempate onto page for (var i = 0; i < resource.RelatedContent_rls.length; i++) { var relatedItem = $('#related-template').text(); relatedItem = relatedItem.replace("@url", resource.RelatedContent_rls[i].url_rst); relatedItem = relatedItem.replace("@text", resource.RelatedContent_rls[i].content_name_rst); $("#myRelatedContent_dlItems").append(relatedItem); } //*** merge related media list into tempate onto page for (var i = 0; i < resource.Media_rls.length; i++) { var relatedItem = $('#relatedMedia-template').text(); relatedItem = relatedItem.replace("@Filename_rst", resource.Media_rls[i].Filename_rst); relatedItem = relatedItem.replace("@AlternateText_rst", resource.Media_rls[i].AlternateText_rst); relatedItem = relatedItem.replace("@Thumbnail_rst", resource.Media_rls[i].Thumbnail_rst); relatedItem = relatedItem.replace("@Title_rst", resource.Media_rls[i].Title_rst); relatedItem = relatedItem.replace("@Parent_url_rst", resource.Media_rls[i].parent_url_rst); $("#ulMedia").append(relatedItem); } if (resource.Media_rls.length == 0) { $("#divMedia").hide(); } else { $("#divMedia").show(); } //*** program list in main content column for (var i = 0; i < resource.Programs_rls.length; i++) { //OfficePrograms.Visible = True //CType(OfficePrograms, OfficeProgramsList).listProgram = _lPrograms } //*** office list in main content column for (var i = 0; i < resource.Offices_rls.length; i++) { //OfficesList.Visible = True //CType(OfficesList, OfficesList).listOffices = _lOffices } //*** Attachements list in right content column if (resource.Attachments_rls.length) { $("#mySideBarType3").append("

    Resources”); for (var i = 0; i 0) { console.log(” mySideBarType5 “); $(“#mySideBarType5”).html(resource.SecondaryBody_rst); $(“#mySideBarType5”).Visible = true; hasSidebar = true; } //*** right column visiblity tweak //If mySideBarType5.Visible = False And mySideBarType3.Visible = False Then //UpdateContentWrapperDiv() ‘ hide the side bar //End If if (!hasSidebar) { $(“#content__wrapper”).removeClass(“sidebar-second”); } } }, error: function (xhr) { location = “/not-found.html”; } }); //end ajaxCall ]]]]]]]]>]]]]]]>]]]]>]]>

    Source

    Leave a Reply

    Your email address will not be published. Required fields are marked *