Lightbox not working on some networks
- Started
- Last post
- 10 Responses
- besler
I use a Lightbox script to show my portfolio section on my website. http://eslercreative.com.
I've gotten two complaints now from two differing companies that they receive errors accessing the Work page (http://eslercreative.com/work.h... in Internet Explorer. I haven't been able to reproduce this error on any machine, in any browser (including IE 6, 7, and 8).
Any ideas on why this could be occurring? I use JavaScript elsewhere on the site, so I know it's not a JavaScript problem on the client end...
- dropdown0
pop-up blockers maybe?
Try fancy box instead:
http://fancybox.net/
- Stugoo0
hrm... no errors here...
can you detail what the error is?
- acescence0
the only error i see is two unmatched div tags lines 59 & 60
- jonturi0
i am on Windows XP here at work and got this error using IE7
i had this problem happen to us. after searching for the cause i found one line referencing a javascript that was the culprit.
i think it has more to do with the placement of the script.
see this link: http://support.microsoft.com/def…
i moved the script to the end of the main html page (our script was buried in a <td> and within a PHP include) and this solved the problem.
- jonturi0
below is the only line of script (reference) that caused our problem. not sure why. start by hiding lines of script until it works (if you can find someone / somewhere to test the problem) then move it around until you can get the page working.
**i only had the problem on your site when clicking the "work" link<script type="text/javascript" src="colcontact.js"></script>
- besler0
Alright, I tried moving the script down to the bottom. Would you mind checking it again?
I will love the day when IE is finally killed off...
- besler0
By the way, jonturi - that's the EXACT message that's been showing up.
- acescence0
It is not possible append to the BODY element from script that isn’t a direct child to the BODY element
If there are any Javascripts running inside the body tag or inside a table which is directly a child of body, then most of the times this error is bound to happen. The solution is to move the script to the top or bottom of the body tag or even moving it after the body. The script can also be put inside a function and then calling it from window.onload. Another solution to this problem is to add defer=”defer” in the script tag.
- yeah, but there was a lot to go thru. workaround fixed it but i will try out that defer in future.jonturi
- jonturi0
i can now access: http://www.eslercreative.com/wor…
in IE7 without error but i don't see any lightbox? just links to jpg
- besler0
Woo-hoo! Thanks jonturi