WebSphere Portal Server - Setting scrollbars to a portlet...

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2004 > Setting scrollbars to a portlet...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting scrollbars to a portlet...
psailaja

2004-01-31, 11:33 am

Hi,
I am displaying a list of records from the database on my portlet. The portlet length grows with the number of records.

Does anybody know how to set scrollbars in a portlet so that I can restrict the length?

Thanks and Regards.
--
Sailu
LTH

2004-01-31, 12:33 pm

One of the easiest ways to control this is using HTML <DIV> tag to wrap you
output and define the height and width for the tag.

Example:

<div style="width:450;height:160;overflow:auto;">
List of records...
</div>
Once the length of your records exceed 160px (height), the scrollbar
will automatically appear.

Or you can use <IFRAME> if the list of records is returned from a URL:

<iframe height='300' width='100%' name='Records' scrolling='auto'
src='http://mydb.com/servlet/GetAllRecords'
title='Records'>
</iframe>

LTH.

"psailaja" <psailaja@rediffmail.com> wrote in message
news:896602817.1075596627245.JavaMail.wasadmin@swg3ws006...
quote:

> Hi,
> I am displaying a list of records from the database on my portlet. The


portlet length grows with the number of records.
quote:

>
> Does anybody know how to set scrollbars in a portlet so that I can


restrict the length?
quote:

>
> Thanks and Regards.
> --
> Sailu




psailaja

2004-01-31, 12:33 pm

Hi,

Will you please paste the code again. It just displays the outline of the boxes, I can't see the code on my screen.

Thank You.

LTH

2004-01-31, 1:33 pm

I posted the message using plain text so you should be able to read it. Try
changing your setting to read all message in plain text.

Tools | Options... | Read (tab) | select "Read all messages in plain text".

If you still have problem reading the post, let me know I can send it to
your e-mail.

LTH.

"psailaja" <psailaja@rediffmail.com> wrote in message
news:895275748.1075600847765.JavaMail.wasadmin@swg3ws006...
quote:

> Hi,
>
> Will you please paste the code again. It just displays the outline of the


boxes, I can't see the code on my screen.
quote:

>
> Thank You.
>




psailaja

2004-01-31, 1:33 pm

My browser is IE 6.0 and I don't find that option.

Will you pls paste the text into note pad first and again into this text window. Then I will be able to see that.

Thanks Much.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com