cancel
Showing results for 
Search instead for 
Did you mean: 

Freeze header in BSP page which is using Grid Layout

Former Member
0 Kudos

Hi Experts,

I have been working on a requirement where i need to freeze the header of a content. That is the header part should not scroll when the user is scrolling down the page.

Here, the standard code is using Grid Layout to display header as well as body. I mean the header is also displayed like part of body.

Col1 Col2 Col3

AAA 1 B

BBB 2 C

CCC 3 D

Here code is like

Grid Layout

Loop to display headings

Loop to display content

End of grid layout

Please through some light on how to achieve this.

I have tried with document.body.ScrollTop .. but it is not working

Thanks in advance.

--- Jyothi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jyoti,

Make the option scrolling = "no" in the header and assign "yes" to the same in the body of the content.

Here below specifies the coding for header ,to freeze it

<frameset id="mainframeset"
           rows="130,*"   frameborder="1" border="1" >

            <frame style="border-bottom-style:solid;
                               border-color:#333333;
                               border-width:1px"
                               name="header"
                              *scrolling="no"*
                               noresize frameborder="no"
                               src ="img.bmp">

Next to the body of the content alone specify the scrolling option to true(ie to the remainig portion of frame)

With Regards,

SHARMILA BRINDHA.M

Former Member
0 Kudos

Hi Sharmila,

I have tried that option and it is working fine.

But here problem is in my header part i have some buttons like BACK, EXIT. When i press the BACK button previous page is coming only in HEADER frame and the BODY frame is remaining as it is.

I dont know how to solve this. That's why trying different options from FRAME.

.. Jyothi

GrahamRobbo
Active Contributor
0 Kudos

Hi Jy,

just get the header page to refresh the body page when it loads.

Cheers

Graham Robbo

Former Member
0 Kudos

Hi All,

I have solved this. but not using frames. i have used xhtmlb overflow container. It's working gr8.

Former Member
0 Kudos

hi jyothi,

can you please guide me how did u manage to solve this ?