I'm getting the error message "too much recursion".
The preventDefault() function can't stop the event and I'm directed to the new page instead of loading it in an iframe.
I don't have a public site where I can show it. It happens in Safari and FF on Mac, that I know of.
I was able to track it down to line 2162 in shadowbox.js (the toggleOverlay function), it is called there with a closure as a parameter to be used as a callback function inside.
Is there a solution to this?
My prototype version is 18.104.22.168 ,
scriptaculous is 1.8.1 ,
shadowbox is 1.0
(@version SVN: $Id: shadowbox.js 75 2008-02-21 16:51:29Z mjijackson $)
I also checked this issue in IE6 on Mac OSX (IEs4linux).
When clicking a "shadowboxed" link, I get a JS alert saying "Stack overflow at line:0".
After I click that away, The shadowbox loads with the desired image inside. However I don't get to see the close link for the box (I don't know if that's the default or not.)
Could someone confirm if this is a bug?
I would really like to use Shadowbox, but this is a showstopper for me.
Thanks for your reply.
// window.onload = Shadowbox.init;
// Event.observe(window, ‘load’, Shadowbox.init);
</script>but I have used the others too.
I have an url put up: http://dmc3.el76.com/static/box.php
While debugging this, I noticed shadowbox is a nice piece of work. Good job on that.
Anyway, Thanks for looking at it.
Could you show me the code you're using to launch Shadowbox? Nobody else has reported this error.
Do you mean "nobody else" as in "those who use Shadowbox" or as in "those who use Shadowbox with Prototype and Scriptaculous" ?
I'm using prototype and scriptaculous with the adapter for it and still haven't found the reason of the bug.
It's caused by the closure used as a parameter in the ToggleOverlay function, but I haven't got any idea on how to fix this.
If anyone could help me out here, that would be highly appreciated.