Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrollable div (using iframe?)

Status
Not open for further replies.

jdbolt

Programmer
Aug 10, 2005
89
CA
I found this:


And really like how it works, I was wonering if someone could let me know how this could be done. I have manageed to write code to get a dragable div for another project, but for this one it would be cool if it had a scrolling pane in the div, for the same purpose as this one, to view search resutls.

I think this may be done with an iframe, they have hidden their source tho :)

Does anyone have any advice or know of any tutorials that might help me out, I have googled to no avail :)

Thanks!
 
Just to clarify a couple things for you...

1. They can't hide their source ( I am looking at it ) ;)

2. No special code needed for the scrolling.

Inside your DIV set the style "overflow: auto"

As long as your results are longer than the height you set in your CSS or inline style, you will get a scroll bar.

Now granted, backbase is using a number of techniques on this page, but none that are unique. As a matter of fact, you can achieve this effect using the above information, along with the following (some of my code, some a library):


Also, regarding backbase.... nothing against them... but at this point in my career (life) I do not have time to learn ANOTHER language. Sure they have nice effects, but man... the learning curve there is too time consuming. Pure Javascript is what they ultimately produce, so why not use the real poop, you know?

Anyways, hope I was some help.

Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top