Re: non-scrollable IFramePortlet
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 [EMAIL PROTECTED]: Great, it worked! Thanks, David :) --- David Sean Taylor [EMAIL PROTECTED] 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 nameSCROLLING/name valueTRUE/value /preference This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-scrollable IFramePortlet
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 nameSCROLLING/name valueTRUE/value /preference -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: non-scrollable IFramePortlet
Great, it worked! Thanks, David :) --- David Sean Taylor [EMAIL PROTECTED] 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 nameSCROLLING/name valueTRUE/value /preference -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773-4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]