Thanks Karl, I didn't know about that option in Firebug. Haha, many times
I've tried to quickly read the error in the console before the page gets
refreshed.
However it's not helping in this case, as apparently no error is being
thrown. Which leads me to believe that shadowbox's handler is not being
bound to the link for some reason. I'll keep digging around and see if I
can figure it out.
-- Josh
----- Original Message -----
From: "Karl Swedberg" <[EMAIL PROTECTED]>
To: <jquery-en@googlegroups.com>
Sent: Wednesday, April 02, 2008 11:42 AM
Subject: [jQuery] Re: Shadowbox no worky with jQuery 1.2.3
Hey Josh,
I haven't used the Shadowbox plugin (though I've admired its beauty). But
sometimes it's hard to catch what could be a JavaScript error when the
page gets refreshed. Have you tried using Firebug and checking the "Break
on all errors" option? That might help you troubleshoot. it could be an
event binding thing, or it could be some other error that isn't being
reported quickly enough before the page refreshes. Hope that makes sense.
To turn on "Break on all errors," open the Firebug console and click on
the "Script" tab. Then click the "Options" drop-down and choose "Break on
all errors."
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 2, 2008, at 2:04 PM, Josh Nathanson wrote:
Hey all,
I'm using the Shadowbox script successfully with jQuery 1.2.1, however
when changing to jQuery 1.2.3, it no longer functions properly. It
looks like something in the preventDefault mechanism in the Shadowbox
jQuery adapter is broken, because when clicking on the image, it does
not prevent the default link event -- it just reloads the image in a new
page. But, I don't see anything wrong with it right off the bat so it
may be something to do with event binding being handled differently in
jQ 1.2.3.
Just hoping maybe somebody has also seen this and figured out what's
going on.
-- Josh