Hi,
Some people have a problem using "Colorbox Login" and my module "Image captcha refresh". What is the problem:
1. User added "Captcha" to the form through module captcha and module "Image captcha refresh" added link for reloading captcha image for this form.
2. Module "Image captcha refresh" added some javascript for form, when form going through hook_form_alter(), via $form['#attached']['js'] , and this is correct way.
But when you load form through function colorbox_form_page() you are just printing form html without adding attachments files.
Also you are use "exit;" in function colorbox_form_page() and drupal can't execute Drupal.behaviors from attachment javascript files.
Do you have thoughts about this problem?
Thanks,
Dima.
Comments
Comment #1
frjo commentedThe form support in Colorbox was a mistake, it's far more complex than I first though. It will be removed in an upcoming 7.x-2.x release.
I point users to the Modal forms module that I also maintain instead. It's based on the modal feature of ctools and handles things a bit better.
http://drupal.org/project/modal_forms