I tried that, but I get an error in Firebug that Shadowbox was undefined.

So, I need to know how to "define" Shadowbox as a function, then issue
the command to close it.

I tried:

$Shadowbox.close()

After the lines below, but that wasn't right...Firebug still tells me
that Shadowbox is undefined.

$(function)Shadowbox.close()

but that didn't work.

I just can't find the correct syntax...

Rick


> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brian
> Sent: Wednesday, December 10, 2008 6:38 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: How do I write a function to close shadowbox?
> 
> 
> Shadowbox.close()
> 
> (I've never used it Myself, so YMMV)
> 
> On Wed, Dec 10, 2008 at 4:10 PM, Rick Faircloth
> <[EMAIL PROTECTED]> wrote:
> >
> > For my "success" callback (I guess that's what you call it...)
> > I've got a series of events after an $.ajax post.
> >
> > Here they are:
> >
> > $('#contentdiv').empty().fadeIn(1000).append(response.login);
> > $('#my_story').empty().fadeIn(2000).append(response.my_story);
> > $('#email').empty().fadeIn(2000).append(response.email_address);
> > $('#pass').empty().fadeIn(2000).append(response.password);
> >
> > These evens happen inside a shadowbox modal window.
> >
> > After the last one, I want to auto-close the shadowbox.
> >
> > The shadowbox command for doing that is .close() .
> >
> > What I can't figure out is how to reference shadowbox itself
> > like I do elements with an id or class, etc.
> >
> > Anyone got a pointer for this?
> >
> > Thanks,
> >
> > Rick
> >
> >

Reply via email to