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 Style
http://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
-~----------~----~----~----~------~----~------~--~---