Javascript help

espfutbol98

New Member
Messages
200
Reaction score
2
Points
0
On a website I'm making for a friend, I have on some pages a lightbox and on all pages I have a facebook-like dialogue popup box for the admin login. In the pages without the lightbox, it works fine. In the pages that do contain the lightbox, the dialoug does not close. The website is http://matej.co.cc/ and I am using a modified facebox UI. Any suggestions for why it's not closing?
 

suomiaol

New Member
Messages
3
Reaction score
0
Points
0
Hi,
I'm not going to dig into your code but I believe this might be a case of having duplicate id values in your code and perhaps this is why JS won't execute correctly if and when duplicates exist. So, I suggest you check what attribute is being used to call for the "close/cancel" command. Hope you find your error.
 

espfutbol98

New Member
Messages
200
Reaction score
2
Points
0
I don't think it can be getting anything mixed up because I don't even have an id on the login box close button. All I have is the very specific html attrabute:
HTML:
onclick="$(document).trigger('close.facebox')"
 
Top