- Create Account

can divscroll coexist with greybox/lightbox/anything?

Forums > DHTML Scroller > can divscroll coexist with greybox/lightbox/anything?
Author
Message

1) neokio Group: Guests
IP: 202.169.--.--
Hi! I've scoured the intarweb for customizable iframe scrollers, and divscroll is by far the finest implementation i've seen. It scrolls beautifully, and simply provides the most graceful interface experience. Much to my dismay, I have not been able to use it anywhere because in every instance in which it could be useful, I've also needed lightbox or something similar, which uses prototype, and as we all know, prototype doesn't play nice with divscroll. So I've had to resort to uglier iframe solutions.

I've recently found a lightbox-like pop-up window that plays nicer with divscroll: greybox ... http://orangoo.com/labs/GreyBox/ ... which works everywhere EXCEPT in IE6+7. In IE7 the layout is messed up + the greybox wont load at all. See example here: http://angganegara.com/wildcard/greybox/index.html

Is there ANYONE out there who has had success combining divscroll and a nice lightbox-esque popup box? Or perhaps anyone willing to examine my linked example and see what's troubling IE7 with greybox?

Thanks for any ideas (and thanks Angus for this forum!)

niko@neokio.com

2) neokio Group: Members
Posts: 5 Joined: 23 Sep 2006 Location: indonesia IP: 202.169.--.--
(Oops, wasn't logged in.. this is me logged in)

3) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
The latest DivScroll *should* work fine with anything like Prototype that extends Array.prototype. Scripts that extend Object.prototype will probably break it though.

GreyBox seems like a nice script. It's not a very accessible implementation but this works:

<a href="#" onclick="return GB_showCenter('Text', '../scrdiv.html'); return false">Launch SCROLLING DIV</a>

The scroller script also traps click events and checks the TARGET of links so it'll be picking up on some of those clicks. Technically a target of '_self' should cause the scroller script to ignore it, but that snippet above works OK for me as-is.

These days however I don't recommend using this scroller script. It's not being actively developed anymore as it's just not accessible enough. Instead, if you want an IFRAME replacement, I recommend using my HTMLHttpRequest script together with browser-native scrollbars which are more user-friendly.

Good luck - Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.