Community & Support

Javascript inside overlay (thickbox/lightbox) not working

This my first request for help in the forums, I managed to almost finish building my website with the info already in here. So a big thanks goes out to all the people providing help and info in the forums, I wouldn't be able to get half as far as I am now if it wasn't for you guys!!

With this issue however I am really stuck. I'm using thickbox to provide a login overlay, but modules using JS to affect the login form (for instance: compact_forms) don't work when the login form is inside this overlay. On the normal login page (user/login) everything works well.

I found out that compact_forms.js wasn't loaded for the popup page, so I added a drupal_add_js for this script, but also with the script loaded nothing happens. The module itself 'appears' to be working since firebug show the correct divs around the fields created by the module.

The problem is not related to compact_forms, it works well on the normal login, and I also encountered the same problem with different modules using JS for the login form. I also switched to lightbox to see what effect this would have, but sadly the results were the same. It looks like a general issue using JS in an overlay, but I'm not sure.

Any help or push in the right direction will be greatly appreciated!

Thanks in advance.

Comments

oops..

I just realized this should be an issue, and not a forum topic. Though it seems to be some sort of general problem, it wasn't my intention to start a complete discussion on the subject.

nobody click here