Ouch!  Well, what you're doing is not exactly what greybox is designed
for.  As far as I know, you'd have to write your own code to grey out
the first greybox.  Why not just change the existing greybox's
content, and put a 'back' button inside of it rather then open a
second greybox?

Tyler Style
http://www.nirdvana.com

On Dec 13, 10:41 am, calder0n <[email protected]> wrote:
> Umm after playing with it a little more I realized the GB_window does
> load, but it's behind the first window. I can put it in front by
> changing the z-index. Now, is there any way to put that first GB
> window in the background too? So it looks grey as 
> well?http://calder0n.com/duh.png
>
> On Dec 13, 10:53 am, calder0n <[email protected]> wrote:
>
> > Oh I see. Now I'm calling it correctly with
> > onclick="return top.GB_showImage('w', this.href)"  and it seems like
> > it's going to work but the image doesn't show. The title and the close
> > button appear like they're supposed to. But the image is just not
> > there. Look at the screenshot.http://calder0n.com/gb_trouble.png
>
> > The image you see there is located inside the GB window.  Any more
> > ideas?
>
> > Thanks for your help.
>
> > On Dec 11, 1:02 pm, Logos <[email protected]> wrote:
>
> > > If I'm understanding you correctly, you want to change the greybox
> > > content.  Try this:
> > > onclick="return top.GB_showImage('w', this.href)"
>
> > > To call greybox functions from within a greybox, you always need to
> > > preface them with "top.", as the greybox functions actually live in
> > > the calling page, not the greybox page.
>
> > > Tyler Stylehttp://www.nirdvana.com
>
> > > On Dec 10, 10:23 am, calder0n <[email protected]> wrote:
>
> > > > Well first, I loaded a GB window with GB_show, and what I'm trying to
> > > > do is place a <img> tag inside that window and call GB_showImage
> > > > (onclick event added to a <a> tag) to show the image and get that
> > > > image overlay effect.
> > > > So the html inside the the GB window is kinda like this:
> > > > .......
> > > > <a href="w.jpg" title="Main Picture" onclick="return GB_showImage('w',
> > > > this.href)">
> > > > .............
> > > > But when the image overlay loads, the image doesn't load and firebug
> > > > throws:
> > > > uncaught exception: [Exception... "Component returned failure code:
> > > > 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLIFrameElement.src]"
> > > > nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame 
> > > > ::http://localhost/ssv/lib/greybox/gb_scripts.js::anonymous::line
> > > > 107"  data: no]
>
> > > > Is there any way to call the image overlay within a GB window
> > > > successfully?
>
> > > > On Dec 10, 10:54 am, Logos <[email protected]> wrote:
>
> > > > > Your description is way too vague - you 'tried calling the
> > > > > function'...which function???  etc etc
>
> > > > > Posting a link to code, or the code itself, would be your best bet.
>
> > > > > Tyler Stylehttp://www.nirdvana.com
>
> > > > > On Dec 9, 9:47 pm, calder0n <[email protected]> wrote:
>
> > > > > > Hey,
> > > > > > I'm trying to display a set of images inside an already loaded gb
> > > > > > window. First, I tried calling the function with an onclick event 
> > > > > > with
> > > > > > no luck, firebug said the function wasn't defined. After that I 
> > > > > > added
> > > > > > the <script> tags to the content of the gb window, but this time the
> > > > > > gb window's content is not being displayed, instead I'm just 
> > > > > > getting a
> > > > > > blank gb window.
> > > > > > anyone that has tried getting that nice gb image effect inside a
> > > > > > loaded gb window?
>
> > > > > > Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to