PDA

View Full Version : Lightbox and another script conflict



fastsol
01-13-2009, 02:14 PM
1) Script Title: lightbox

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem: Hello, I hope somene can shed some light on this issue for I don't know enough about javascript to know what's going wrong. I'm using the lightbox script from here and love it, along with a Navstudio 2005 menu builder that makes javascript menus. everything works great as long as they are not on the same page. The only issue there is is that when the page finishes loading a popup window opens but is empty, click ok and it goes away and all works fine. like I said this only happens on pages that both scripts occupy. Also this on happens in IE that I've been able to tell anyway. here is a link to one of the pages. http://bzcaraudio.com/exterior.html
Any insight will be greatly appreciated.

jscheuer1
01-13-2009, 04:11 PM
Geez, even with broadband that page takes forever to load and looks very poorly even once loaded in Opera. Anyways, the alert is coming from your bz-menu-header.js file. Near the end there is a long line that has this at its end:


function vqp_error(val){alert(val)}


Change that bit to:


function vqp_error(val){return;}


and the problem should go away.

fastsol
01-13-2009, 04:56 PM
YOU ARE A GENIUS. thank you so much. I have noticed on any browser in those pages described it took longer to load. Maybe try it now and see if it is better without the conflict. I don't have opera to test on my computer but everyone else i have talked to says it loads very fast on the systems they are using. Thanks very much again.

fastsol
01-13-2009, 05:03 PM
I downloaded opera and tried it to see what you are talking about and i'm finding it only does it again on pages that occupy the lightbox and menus, but no other pages seem to be affected. Any suggestions?