PDA

View Full Version : splitbar


wac
05-07-2003, 04:12 PM
Does anyone have some code that will do a resize bar that works for IE6+ and NS6+?
(like a split pane in java)

Basically I want to be able to horizontally or vertically (not at the same time) change the size of two DIVs using a split/resize bar in between them.

I've been struggling with doing it myself.:confused:

Roy Sinclair
05-07-2003, 04:58 PM
Use an <iframe> to cover the whole area where both sections will live then load a frameset page into that iframe with each section you want set up as a separate page and allow the frames to be resized by the end user.

Vladdy
05-07-2003, 06:11 PM
No need to make a mess out of a page with frames.
Here is a little demo I whipped up during the lunch hour (will still allow you to have a sensible markup in old browsers and those with JS disabled):
www.vladdy.net/SplitBar.html
- needs some parameter checking so it does not err when the mouse leaves client area during drag...

wac
05-07-2003, 10:26 PM
Thank you both. This is just what I was looking for, and if other issues determine, I might indeed use the frameset approach (I may have to embed my code into another applications IFRAME, so I'll have both options).