Forum Moderators: mack

Message Too Old, No Replies

Scrolling Areas

That us the QueryString

         

Mr_Brutal

9:59 am on Nov 26, 2003 (gmt 0)

10+ Year Member



Hi,

I was hoping someone could suggest a couple of ways of using a scrolling area other than the way i currently do it as its currently a bit clumsy i feel.

I have a search page that when accessed using the querystring with search parameters produces a page that has a list of matchs, but i want those matchs to appear in there own scrolling area on the page. Currently i use an Iframe, but because it uses its own source i am having to set the querystring variables that exists as session variables and then my page in the iframe uses the session variables to run its query. Can i use something other than an iframe to present the results in a scrollable area on the main search page so that i can just use the querystring variables and not use session variables in what i feel is a clumsy manner!

Sorry if this is hard to understand, but any help with scrolling area suggestions woudld be appreciated.

Thanks Y'all

Birdman

11:36 am on Nov 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can set the overflow property of the element(s) that contain your results.

Example:
<div style="width: 100px; height: 300px; overflow: scroll;">
Your results here
</div>

You can also use 'auto' in place of 'scroll'.

Mr_Brutal

11:51 am on Nov 26, 2003 (gmt 0)

10+ Year Member



Thanks Birdman thats exactly what i need.

Aren't DIVS fantastic.

Birdman

12:31 pm on Nov 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You are quite welcome. Yes, divs are good great but remember you can apply that style to other elements as well.

<p style="width: 100px; height: 300px; overflow: scroll;">
Your results here
</p>