How to add js and css to popup window ?
I have the problem to adding js and css in popup window. I modified plugin contact form to use popup.
In the event
PluginController_Contact_Create I had
$Sender->AddJsFile('jquery.autogrow.js'); // does not add
$Sender->AddCssFile('contact.css','plugins/Contact/contact.css'); // does not add
I have also tried in the popup window add directly on the top like:
$this->AddJsFile('js/library/jquery.autogrow.js'); // does not add
$this->AddJsFile('jquery.autogrow.js'); // does not add
$this->AddCssFile('contact.css', 'plugins/Contact'); // does not add
This form have a Checkbox "Check this if You Are Not a Bot" and I think it will not work without including - jquery.autogrow.js or just to increase textarea ? If so then how it checks if there is a robot with the Checkbox ...?
It seems that has to be another way to add js and styles popup window... Somebody knows?