Where you call the shadowbox element? instead of doing shadowbox.whatever(), try var myShad=shadowbox.whatever() , then myShad.close() should do the trick.
On 10 Dic 2008, 22:10, "Rick Faircloth" <r...@whitestonemedia.com> 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 ashadowboxmodal window. > > After the last one, I want to auto-close theshadowbox. > > Theshadowboxcommand for doing that is .close() . > > What I can't figure out is how to referenceshadowboxitself > like I do elements with an id or class, etc. > > Anyone got a pointer for this? > > Thanks, > > Rick