You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Marina <pp...@yahoo.com> on 2005/02/14 03:02:42 UTC

non-scrollable IFramePortlet

Hello!

I tried using IFramePortlet to display a content from
another URL inside it, and I noticed that the content
of the IFramePortlet window is not scrollable. 

I tried modifying the
.../decorations/portlet/html/tigris/decorator.vm as
following:

...
## Portlet Content
##
#if (!$jetspeed.isHidden($myF) ||
$jetspeed.WindowState != "minimized")
  <tr>
    <td class="PContent">	
    <div style="overflow: auto">
   	   $myF.renderedContent
    </div>
    </td>   
  </tr>
#end
...

but it did not help.

Any idea how I could make it scrollable?

Thanks!
Marina

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: non-scrollable IFramePortlet

Posted by Oliver Kohll <ol...@gtwebmarque.com>.
A similar thing I've found useful is to make an iframe resize to the contents,
so that you don't need scrollbars. I used a plain HTML portlet rather than an
IFramePortlet and put the following in the HTML source.

It only works if Tomcat/servlet engine is accessed using the same port 
as static
HTML content, or possibly over SSL, otherwise the JavaScript doesn't have
privileges to execute.

Regards,

Oliver

<!-- Javascript from
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20907360.html
-->
<html>
<head>
<script language="JavaScript">
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
theFrame = document.getElementById('iframename');
h = theFrame.contentDocument.body.scrollHeight;
w = theFrame.contentDocument.body.scrollWidth;
theFrame.style.height = h;
theFrame.style.width = w;

}else if(document.all) {
h = window.frames.iframename.document.body.scrollHeight;
w = window.frames.iframename.document.body.scrollWidth;
document.all.iframename.style.height = h;
document.all.iframename.style.width = w;
}
}
</script>
</head>
<body>
<IFRAME onLoad="iFrameHeight()" frameborder=0  height="1500px" width="100%"
SRC="http://mysite.com" NAME="iframename" ID="iframename"></IFRAME>
</body>
</html>

Quoting Marina <pp...@yahoo.com>:

> Great, it worked!
> Thanks, David :)
>
> --- David Sean Taylor <da...@bluesunrise.com> wrote:
>
>> Marina wrote:
>> > Hello!
>> >
>> > I tried using IFramePortlet to display a content
>> from
>> > another URL inside it, and I noticed that the
>> content
>> > of the IFramePortlet window is not scrollable.
>> >
>> > Any idea how I could make it scrollable?
>> >
>> Try adding this Preference to your portlet.xml and
>> redeploy:
>>
>> 			<preference>
>> 				<name>SCROLLING</name>
>> 				<value>TRUE</value>
>> 			</preference>


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


[J1.5] Left Menu

Posted by Vladimir Lisin <vl...@emgas.gazprom.ru>.
Hi all

In  default.psml I have the next construction for left menu and it works 
well:
.................................................................................................
 <portlets id="P-10073a173c6-10008">
        <metainfo>
            <title>XXXXXXXX</title>
        </metainfo>
        <security-ref parent="user-view_admin-all"/>
        <layout position="1" size="-1"/>
        <control name="MenuControl"/>
        <controller name="MenuController">
            <property name="parameter" value="select-panel"/>
        </controller>
        <entry id="P-100cbd82f69-10003" parent="Finmarket">
 
................................................................................
After translation in HTML this fragment  looks as below  and  the width of 
menu have 25%.  How and  which parameters I can use to change  this value 
?
................................................................................
<table cellpadding="0" cellspacing="0" border="0" width="100%" >
  <tr>
    <td valign="top" width="25%">
    <div  class="Corporate" >
        <table cellspacing="0" border="0" cellpadding="0" width="100%" >
              <tr>
            <td  class="MenuLeft" ></td>
            <td valign="middle"   class="MenuMiddle"    style="" >
                              Gazeta.ru
              </td>
            <td  class="MenuRight" ></td>
...........................................................................
Thanks in advance,  Vladimir

Re: non-scrollable IFramePortlet

Posted by Marina <pp...@yahoo.com>.
Great, it worked!
Thanks, David :)

--- David Sean Taylor <da...@bluesunrise.com> wrote:

> Marina wrote:
> > Hello!
> > 
> > I tried using IFramePortlet to display a content
> from
> > another URL inside it, and I noticed that the
> content
> > of the IFramePortlet window is not scrollable. 
> > 
> > Any idea how I could make it scrollable?
> > 
> Try adding this Preference to your portlet.xml and
> redeploy:
> 
> 			<preference>
> 				<name>SCROLLING</name>
> 				<value>TRUE</value>
> 			</preference>
> 
> 
> -- 
> David Sean Taylor
> Bluesunrise Software
> david@bluesunrise.com
> [office] +01 707 773-4646
> [mobile] +01 707 529 9194
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: non-scrollable IFramePortlet

Posted by David Sean Taylor <da...@bluesunrise.com>.
Marina wrote:
> Hello!
> 
> I tried using IFramePortlet to display a content from
> another URL inside it, and I noticed that the content
> of the IFramePortlet window is not scrollable. 
> 
> Any idea how I could make it scrollable?
> 
Try adding this Preference to your portlet.xml and redeploy:

			<preference>
				<name>SCROLLING</name>
				<value>TRUE</value>
			</preference>


-- 
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org