Stump the Panel Topic: Display a web part (task) from one site to another site http://www.endusersharepoint.com/STP/ SharePoint QA en Thu, 13 Aug 2009 12:21:14 +0000 jaxkookie on "Display a web part (task) from one site to another site" http://www.endusersharepoint.com/STP/topic/display-a-web-part-task-from-one-site-to-another-site#post-5114 Thu, 12 Mar 2009 13:47:34 +0000 jaxkookie 5114@http://www.endusersharepoint.com/STP/ <p>@AutoSponge, thanks for the idea. Found this post very helpful; <a href="http://office.microsoft.com/en-us/sharepointdesigner/HA101154041033.aspx" rel="nofollow">http://office.microsoft.com/en-us/sharepointdesigner/HA101154041033.aspx</a></p> <p>@laura67, you always have great post. I have visited your site multiple times, the problem I have is my company is still on WSS 3.0, so I don't have access to the neat tools MOSS offers, like the CQWP. Does anyone know if these tools are something that can be add without MOSS? </p> laura67 on "Display a web part (task) from one site to another site" http://www.endusersharepoint.com/STP/topic/display-a-web-part-task-from-one-site-to-another-site#post-5064 Wed, 11 Mar 2009 10:17:31 +0000 laura67 5064@http://www.endusersharepoint.com/STP/ <p>I'm no coder, so here's how I'd do it:<br /> Use one of the following out-of-box web parts: User Tasks, Content Query Web part, or look at the other options in my blog here:<br /> <a href="http://spinsiders.com/laurar/2009/01/29/ways-to-display-multiple-document-libraries/" rel="nofollow">http://spinsiders.com/laurar/2009/01/29/ways-to-display-multiple-document-libraries/</a></p> <p>Laura Rogers </p> AutoSponge on "Display a web part (task) from one site to another site" http://www.endusersharepoint.com/STP/topic/display-a-web-part-task-from-one-site-to-another-site#post-5042 Tue, 10 Mar 2009 16:37:23 +0000 AutoSponge 5042@http://www.endusersharepoint.com/STP/ <p>Do you have SPD? A linked data source (merge) might be easier and work better. </p> Adam on "Display a web part (task) from one site to another site" http://www.endusersharepoint.com/STP/topic/display-a-web-part-task-from-one-site-to-another-site#post-5037 Tue, 10 Mar 2009 15:55:46 +0000 Adam 5037@http://www.endusersharepoint.com/STP/ <p>ok so i've been looking around some more and think I found my solution. Using the web part "Content Editor Web Part" and adding the following code while modifying the URL of the task list of the other site it displays.</p> <p>&lt;!-- Load and display list - iframe version --&gt;<br /> &lt;!-- Questions and comments: <a href="mailto:[email protected]">[email protected]</a> --&gt; </p> <p>&lt;DIV id="ListPlaceholder"&gt;&lt;IMG src="/_layouts/images/GEARS_AN.GIF"&gt;&lt;/DIV&gt; </p> <p>&lt;!-- Paste the URL of the source list below: --&gt;<br /> &lt;iframe id="SourceList" style="display:none;" src="http://domain.com/SiteCollection/SourceSite/SourceList/MyView.aspx" onload="DisplayThisList()"&gt;&lt;/iframe&gt; </p> <p>&lt;script type="text/javascript"&gt;<br /> function DisplayThisList()<br /> {<br /> var placeholder = document.getElementById("ListPlaceholder"); </p> <p>var displaylist = null;<br /> var sourcelist = document.getElementById("SourceList"); </p> <p>try {<br /> if(sourcelist.contentDocument)<br /> // Firefox, Opera </p> <p> {displaylist = sourcelist.contentDocument.getElementById("WebPartWPQ1") ;}<br /> else if(sourcelist.contentWindow)<br /> // Internet Explorer </p> <p> {displaylist = sourcelist.contentWindow.document.getElementById("WebPartWPQ1") ;}<br /> else if(sourcelist.document)<br /> // Others? </p> <p> {displaylist = sourcelist.document.getElementById("WebPartWPQ1") ;}<br /> }<br /> catch(err) { alert ("Loading failed");} </p> <p>displaylist.removeChild(displaylist.getElementsByTagName("table")[0]);<br /> var allDescendants = displaylist.getElementsByTagName("*");<br /> for (i=0;i&lt;allDescendants.length;i++) {<br /> allDescendants[i].removeAttribute("id");<br /> allDescendants[i].removeAttribute("onclick");<br /> allDescendants[i].removeAttribute("onfocus");<br /> allDescendants[i].removeAttribute("onmouseover");<br /> }<br /> placeholder.innerHTML = displaylist.innerHTML;<br /> }<br /> &lt;/script&gt; </p> <p>&lt;!-- Load and display list - iframe version --&gt;<br /> &lt;!-- Questions and comments: <a href="mailto:[email protected]">[email protected]</a> --&gt;</p> <p>&lt;DIV id="ListPlaceholder"&gt;&lt;IMG src="/_layouts/images/GEARS_AN.GIF"&gt;&lt;/DIV&gt;</p> <p>&lt;!-- Paste the URL of the source list below: --&gt;<br /> &lt;iframe id="SourceList" style="display:none;" src="http://domain.com/SiteCollection/SourceSite/SourceList/MyView.aspx" onload="DisplayThisList()"&gt;&lt;/iframe&gt;</p> <p>&lt;script type="text/javascript"&gt;<br /> function DisplayThisList()<br /> {<br /> var placeholder = document.getElementById("ListPlaceholder");</p> <p>var displaylist = null;<br /> var sourcelist = document.getElementById("SourceList");</p> <p>try {<br /> if(sourcelist.contentDocument)<br /> // Firefox, Opera</p> <p> {displaylist = sourcelist.contentDocument.getElementById("WebPartWPQ1") ;}<br /> else if(sourcelist.contentWindow)<br /> // Internet Explorer</p> <p> {displaylist = sourcelist.contentWindow.document.getElementById("WebPartWPQ1") ;}<br /> else if(sourcelist.document)<br /> // Others?</p> <p> {displaylist = sourcelist.document.getElementById("WebPartWPQ1") ;}<br /> }<br /> catch(err) { alert ("Loading failed");}</p> <p>displaylist.removeChild(displaylist.getElementsByTagName("table")[0]);<br /> var allDescendants = displaylist.getElementsByTagName("*");<br /> for (i=0;i&lt;allDescendants.length;i++) {<br /> allDescendants[i].removeAttribute("id");<br /> allDescendants[i].removeAttribute("onclick");<br /> allDescendants[i].removeAttribute("onfocus");<br /> allDescendants[i].removeAttribute("onmouseover");<br /> }<br /> placeholder.innerHTML = displaylist.innerHTML;<br /> }<br /> &lt;/script&gt; </p> Adam on "Display a web part (task) from one site to another site" http://www.endusersharepoint.com/STP/topic/display-a-web-part-task-from-one-site-to-another-site#post-5029 Tue, 10 Mar 2009 14:40:42 +0000 Adam 5029@http://www.endusersharepoint.com/STP/ <p>So the issues this that I have task list on subsite 1 (Sales dept) and subsite 2 (marketing dept)and I would like to display both tasks on the root site. This way when each department changes a task on their sites it would also reflect on the root site. I would also like to do this for announcements. So that I have the Announcements from all subsite displayed on the Main page of the Root site. We are running just the basic WSS 3.0. Any help is appreciated.</p> <p>Thanks,<br /> Adam </p>