Skip to main content


Showing posts with the label Content Query Webpart

Display List In Content Query Webpart

<DIV id="ListPlaceholder"><IMG src="/_layouts/images/GEARS_AN.GIF"></DIV>

    <!-- Paste the URL of the source list below: -->
    <iframe id="SourceList" style="display:none;" src="/site/Lists/Calendar/Current%20Month%20Events.aspx" onload="DisplayThisList()"></iframe>

    <script type="text/javascript">
    function DisplayThisList()
        var placeholder = document.getElementById("ListPlaceholder");
        var displaylist = null;
        var sourcelist = document.getElementById("SourceList");
        try {
                  // Firefox, Opera
                displaylist = sourcelist.contentDocument.getElementById("WebPartWPQ2") ;
               else if(sourcelist.contentWindow)
                  // Internet Explorer
                displaylist = sour…