﻿//This function calls the getAssociatedListings function and injects the HTML results into the div
function renderAssociatedListings() {
    jQuery.ajax({
        type: "POST",
        url: "/Desktopmodules/MDTListingAssociation/MDTListingAssociation.asmx/getAssociatedListings",
        data: "{'listingID': '" + jQuery.query.get('ContentGUID') + "', 'currentUrlHost': '" + location.hostname + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function(msg) {
        jQuery('#listingassociation_Output').html(msg.d);
        },
        error: function() { jQuery('#listingassociation_Output').html("An error has occurred."); }
    });
}
