<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Playing around with iframes... in javascript</title><link>http://blogs.msdn.com/b/jonasd/archive/2007/05/21/playing-around-with-iframes.aspx</link><description>Display a related entity in context of the parent is old stuff and could be found little every where if you search around. But finding samples to change or modify attached child entities is not so clear. One thing that differs if you render your iframe</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Playing around with iframes... in javascript</title><link>http://blogs.msdn.com/b/jonasd/archive/2007/05/21/playing-around-with-iframes.aspx#6173756</link><pubDate>Tue, 13 Nov 2007 17:06:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6173756</guid><dc:creator>jonadei</dc:creator><description>&lt;p&gt;Thanks! Please have a look at stunnware&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.stunnware.com/crm2/topic.aspx?id=JS17"&gt;http://www.stunnware.com/crm2/topic.aspx?id=JS17&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;var lookup = crmForm.all.your_lookup_field;&lt;/p&gt;
&lt;p&gt;if ((lookup != null) &amp;amp;&amp;amp; (lookup.DataValue != null)) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var objectTypeCode = lookup[0].type;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var objectId = lookup[0].id;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;var url = '/userdefined/edit.aspx?id=&amp;quot; + objectId + '&amp;amp;etc=' + objectTypeCode;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;window.open(url);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6173756" width="1" height="1"&gt;</description></item><item><title>re: Playing around with iframes... in javascript</title><link>http://blogs.msdn.com/b/jonasd/archive/2007/05/21/playing-around-with-iframes.aspx#6144749</link><pubDate>Mon, 12 Nov 2007 20:27:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6144749</guid><dc:creator>dmbrandon</dc:creator><description>&lt;p&gt;Great information on using jscript. Could you assist with the following?&lt;/p&gt;
&lt;p&gt;Displaying activity history in Iframe of Contacts is straightforward with the following code:&lt;/p&gt;
&lt;p&gt;var navActivityHistory;&lt;/p&gt;
&lt;p&gt;navActivityHistory =&lt;/p&gt;
&lt;p&gt;document.all.navActivityHistory;&lt;/p&gt;
&lt;p&gt;if (navActivityHistory != null)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;navActivityHistory.style.display = &amp;quot;none&amp;quot;;&lt;/p&gt;
&lt;p&gt;document.all.IFRAME_HistoryFrame.src=&amp;quot;/sfa/conts/areas.aspx?oId=&amp;quot; +&lt;/p&gt;
&lt;p&gt;crmForm.ObjectId +&lt;/p&gt;
&lt;p&gt;&amp;quot;&amp;amp;oType=2&amp;amp;security=852023&amp;amp;tabSet=areaActivityHistory&amp;quot;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;else&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;alert(&amp;quot;navHistory Not Found&amp;quot;);&lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;However, I would like display a related entity (Contacts) in the context of a custom entity. The custom entity is Household and would like to display the members (contacts) of the household in an iframe on the Household form.&lt;/p&gt;
&lt;p&gt;Any ides would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6144749" width="1" height="1"&gt;</description></item></channel></rss>