We are using the sahadowbox script for our popup boxes on a site and it is working fine except for 1 case.
We have a link to pageB.php on pageA.php that has a rel=“shadowbox” attribute in the a tag. If pageA is loaded and you click on the link to pageB.php it brings up pageB in the shadowbox and everything works fine.
If pageA.php is still loading and you click on the link to pageB then pageB loads in a full page not the shadowbox.
Has anyone seen this behavior?
Is there a way to prevent it without locking out the page until it is completely loaded?
One way is to from the head of the document, capture any onclick events and cancel them. Then once the page is loaded you can disable that capture process.
The JavaScript Forum will be able to help you nicely regarding this issue.