<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Url Iview - Automatic Height problem in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925966#M336033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) This sounds like a tricky workaround if you don't have access to the original sources. If you have, you should add the domain relaxing code within it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) Please reward points for helpful answers, also see your thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="16140"&gt;&lt;/A&gt; ... (second try)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2005 09:44:47 GMT</pubDate>
    <dc:creator>detlev_beutner</dc:creator>
    <dc:date>2005-03-10T09:44:47Z</dc:date>
    <item>
      <title>Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaq-p/925963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a problem using the automatic height option with a Url Iview.  It seems that the only way this option works is when the Url for the iview points to the same domain as the user's browser--in this case, since the browser is pointing at the portal instance this means that the url has to be pointing back to the portal server in order for the automatic height to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this is a javascript security restriction when trying to resize the iframe on a different domain.  I've scanned SDN documentation for any references, and found the following suggestion referring to iViews made from BW templates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"&amp;lt;/b&amp;gt; &amp;lt;i&amp;gt;The automatic height function will not work because there is no domain resolvment done in that case (The BW Reporting Agent is not portal aware) and therefore the browser is not able to access the iframe for changing its size. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it will work if you add javascript for resolving the domain to their web template. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script language="Javascript"&amp;gt;  &lt;/P&gt;&lt;P&gt; var lsDomain = "";  &lt;/P&gt;&lt;P&gt; var liBehindFirstDot = location.hostname.indexOf( "." ) + 1;  &lt;/P&gt;&lt;P&gt; if (liBehindFirstDot &amp;gt; 0) document.domain = location.hostname.substr( liBehindFirstDot );  &lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;b&amp;gt; "&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could this approach work for my Url Iview issue?  Can I make a new template from the current Url Iview template (so not to affect the default Url Iview template)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2005 12:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaq-p/925963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-04T12:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925964#M336031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;several points:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) Use the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Code&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; button instead of the italic button for code; makes it much more readable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) Line &amp;lt;i&amp;gt;var lsDomain = "";&amp;lt;/i&amp;gt; is superfluous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(c) It only works if portal is in domain a.b.c and the integrated domain is x.b.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(d) The JS part has to be within the integrated HTML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(e) Please reward points for helpful answers, also see your thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="16140"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2005 18:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925964#M336031</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-03-04T18:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925965#M336032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue seems to be caused by the fact that the call to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EPCM.relaxDocumentDomain()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; inserted into the page by the pagebuilder component only relaxes the domain to that portion of the hostname following the first dot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We utilize domain names as follows: servername.location.country.company.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, we need to set the document domain, leaving only the last dot--domain="company.com"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found a temporary workaround, which is to add an embedded iview to the bottom of each page, that simply sets the document domain as required above.  Is there a better / more permanent option?  Are there any configuration options in Portal that can control the level of domain relaxing that occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2005 19:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925965#M336032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-09T19:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925966#M336033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) This sounds like a tricky workaround if you don't have access to the original sources. If you have, you should add the domain relaxing code within it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) Please reward points for helpful answers, also see your thread &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="16140"&gt;&lt;/A&gt; ... (second try)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 09:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925966#M336033</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-03-10T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925967#M336034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Detlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I think maybe we're misunderstanding each other a bit here.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have no problem modifying the source (and thus controlling the domain) of the resources that my Url iViews point to (the content rendered inside of the iFrame).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My problem is with the page that contains the individual Url iViews.  Pagebuilder, when rendering the page and the iFrames pointing to my Urls, initially adds a call to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EPCM.relaxDocumentDomain()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to the page before rendering the iViews.  This relaxing will only relax to the portion of the hostname after the first dot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Example.  My Url iView points to &lt;A href="http://server1.location1.us.company.com/someResource" target="test_blank"&gt;http://server1.location1.us.company.com/someResource&lt;/A&gt;.  The Portal page url may be something like &lt;A href="http://server2.location2.us.company.com/pcd/paths/par/etc" target="test_blank"&gt;http://server2.location2.us.company.com/pcd/paths/par/etc&lt;/A&gt;.  I can control the domain that the Url iView points to, making the domain any portion of the hostname.  Let's say I alter the domain of the URL resource from server1.location1.us.company.com to company.com.  The most relaxed domain I can get from Portal/Pagebuilder/EPCM.relaxDocumentDomain() is location2.us.company.com.  The automatic height adjustment javascript attached by Portal to the iFrame for my Url iView (domain = company.com) will not be allowed to change the height because of domain differences (location2.us.company.com vs company.com).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  My temporary solution of adding an embedded isolation mode iView to the page, which simply adds javascript to alter the page domain, seems to work.  However, I'm wondering if there is a better, more robust solution to what I'm trying to do.  Is there any way within the Portal configuration, perhaps, to control the level of domain relaxing that the EPCM javascript performs?  Or, is there another option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Curt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 12:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925967#M336034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-03-10T12:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925968#M336035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, now I've also got the rest of the story.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(a) The topic is known for BSPs inside EP - but only from the BSP side, see &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/28/7c383f717b5f03e10000000a114084/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/28/7c383f717b5f03e10000000a114084/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(b) An approach could be to edit the JS of EPCF.relaxDocumentDomain() to do a maximum relaxing as described in the link given. At a first glance, this shouldn't produce additional problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(c) As usual, third try &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; (even if &amp;lt;i&amp;gt;this&amp;lt;/i&amp;gt; thread didn't help you 'til now, the other should have?!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Detlev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2005 15:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925968#M336035</guid>
      <dc:creator>detlev_beutner</dc:creator>
      <dc:date>2005-03-10T15:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925969#M336036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Detlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you still watch this topic! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similiar problem: I want to use the automatic height with url iviews pointing to pages on the same server and if possible avoid to add the JS to every page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood this right, the problem in my case is, that the portal relaxes it's domain let's say from server.sub.top.de to sub.top.de and the HTML-Pages are still on server.sub.top.de. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to keep the portal from relaxing it's domain completeley or for one page? Then both would be on same domain again and the portal could access the pages's properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Greetings,&lt;/P&gt;&lt;P&gt;Reinhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2005 13:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925969#M336036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-08T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Url Iview - Automatic Height problem</title>
      <link>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925970#M336037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Curt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face exactly the same problem. In addition, I'm not able to change any sources of the target application. So I would appreciate very much if you can send me your embedded iview workaround. I will reward you with as much reward points as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much thanks in advance,&lt;/P&gt;&lt;P&gt;Elmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/url-iview-automatic-height-problem/qaa-p/925970#M336037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T15:02:00Z</dc:date>
    </item>
  </channel>
</rss>

