AW: [opencms-dev] I need scroll bar on an editable page

Kai Schliemann k.schliemann at comundus.com
Fri Jul 21 18:32:44 CEST 2006


Hi Vikas,

IE doesn't support min-width and max-height, use width and height instead.

If you are in search of a good css book in german have a look at
"CSS-Praxis" from "Kai Laborenz" (ISBN 3-89842-577-0). This is a very good
book for beginners and experts. And with 34,90 € it is not expensive. (no, I
don't get an provision)

Regards Kai


  -----Ursprüngliche Nachricht-----
  Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Vikas Jain
  Gesendet: Freitag, 21. Juli 2006 06:48
  An: 'The OpenCms mailing list'
  Betreff: RE: [opencms-dev] I need scroll bar on an editable page


  Hi Kai,

  As per your suggestion I use overflow: auto on my rightText which is a
xmlpage like



  <div style="padding-left: 0px; overflow: auto; max-height: 378px;
min-width: 492px;" id="test">

  <td>Blindtext <br /> <br />Hier steht ein Blindtext zu den lnhalten
der 


.</td>

  </div>



  And now I includes this page on my index.jsp page using



  <cms:include file="right_text" element="body" editable="true"/>



  I am using fckEditer.

  Now my last problem is resolved.

  Now this div tag gives me the property of scrolling.

  But it works fine in Firefox, in IE it not working that means it does’t
give me the scroller and right format.





  With Thanx and Regards,

  Vikas








----------------------------------------------------------------------------
--

  From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Kai Schliemann
  Sent: Thursday, July 20, 2006 1:11 PM
  To: The OpenCms mailing list
  Subject: AW: [opencms-dev] I need scroll bar on an editable page



  Hi Vikas,



  do I understand you right, that you have a page with two (or more)
sections; One is the right_text section which should be scrollable; or
meaning that you want it to be of a certain size and if the content
overflows the size a scrollbar should occur?

  If so then you can do this with an iframe but the problem is, that OpenCms
treads content loaded into an iframe as external content and therefore it is
not possible to access your content properly.



  What you could use instead of an iframe is a css-container with the
attribute overflow: scroll or overflow: auto.



  Hope this helps.



  Regards



  Kai



    -----Ursprüngliche Nachricht-----
    Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Vikas Jain
    Gesendet: Donnerstag, 20. Juli 2006 09:18
    An: 'The OpenCms mailing list'
    Betreff: RE: [opencms-dev] I need scroll bar on an editable page






----------------------------------------------------------------------------

    From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Vikas Jain
    Sent: Thursday, July 20, 2006 12:39 PM
    To: opencms-dev at opencms.org
    Subject: [opencms-dev] I need scroll bar on an editable page



    Hi List,

    I want to use a simple editable page on which I can use scroll bar.For
that I can not use tepmplate because as I think we can not make a template
editable by using include tag.As I know we can include a file and make that
editable.

    For this i create a jsp page (rightText.jsp) on which I am using
<cms:include file="right_text" element="body" editable="true"/>

    This right.text is a simple html page.And I am using this jsp page on my
index page like <iframe src="rightText" name="myiframe2" style="width:542px;
height:390px; position:static;"  scrolling="yes"  frameborder="0"></iframe>

    I am using iframe for using scrolling, which is my need.

    But when I run index.jsp and click on editable then the editable window
is opened but when I click on save and exit button then it will not come
back on my index page,it comes on the rightText.jsp page while I need to
come back it on my index page.

    If I am using

    <iframe name="myiframe2" style="width:542px; height:390px;
position:static;"  scrolling="yes"  frameborder="0"></iframe>

    <cms:include file="right_text" element="body" editable="true"/>

    On my index.jsp then it will create some space problem and also not
gives the scroller.



    Is it possible that while  using <cms:include property="template"
element="head"  /> we can make this head template element editable?

    If yes then how?



    Any help would be highly appreciated.





    Regards,

    Vikas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060721/d5ca7680/attachment.htm>


More information about the opencms-dev mailing list