Yeah, I suspected as much. I'm using GreyBox in other portions of the app, so I was somewhat hopeful that someone had built a plugin vs. having to hand code it or using another library. After some initial poking about, I finally just gave up and built it myself.
I haven't actually come across a windowing library that does do that. Moodalbox/Slimbox are AJAX-ready, but also utilize iFrames. Lightbox2 can be tweaked to do it, but then you've got thirty pounds of unused code baggage to lug around for non-native functionality. OverLib, the Tooltip library I'm using, can be extended to work cross-frame, but then you've got all kinds of offsets and crap you've got to handle with a center-aligned site. I finally just said screw it and slammed something out. It's not fancy enough to make a distro out of (maybe I'll flesh it out one of these days), but it's only about 200 lines and sits minified at 1k. Good enough. Thanks for the reply though man, I wasn't actually optimistic about hearing back from anyone. If you're aware of a DIV-driven windowing library, hot me back, would you? I'd like to compare notes. [Zk] On Mar 24, 5:55 am, Logos <[email protected]> wrote: > You'd need a different windowing library - greybox just doesn't do > that. :( > > On the up side, what you are describing is pretty simple and could be > knocked together in a couple hours if you know what you're doing. > > -- > Tyler Stylehttp://malthusian-solutions.comhttp://nirdvana.com > > ZenKai wrote: > > Does anyone know if it's feasible to have GreyBox render a DIV tag > > instead of an iFrame? I know it's not possible to load a remote URL > > into a DIV (duh), so I obviously couldn't use this to, say, load > > Google, but has anyone attempted to "gb_page_center" a div tag > > containing AJAX-driven or even static content? > > > Example/Explanation: > > > I have an intranet site I'm working on here that allows our employees > > to purchase products from the company. For the sake of argument, let's > > say it's DVD's. I search on "Harry Potter," and display the results in > > a GreyBox. The problem i have with this approach is that other pieces > > of functionality (a mouse-over tooltip div, for example) obviously > > can't straddle the frame demarcation. > > > Now, I know I can load my search_results.jsp in the GreyBox, pass the > > query via the QueryString, and display the results thusly. However, > > hovering over the DVD's cover should give you additional information > > in a tooltip div (charities the sale benefits, number in stock, etc.). > > If I embed the hover code within the GreyBox, the tooltip is confined > > within it (the GB). If I instead embed the hover code in the parent > > and trigger it from within the GB, the iFrame (which seems to have an > > infinite z-index) sits on top of the tooltip. > > > What I'd Like to Do: > > > Ideally, I'd like the same effect to take place: overlay becomes > > visible, parent darkens to 50% opacity, etc. Then, instead of loading > > an iFrame in the center, I load a DIV tag and use AJAX to set its > > contents (a la ExtJS or Scriptalicious). > > > Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

