I use the StrongPass script that was used and described here: http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/3802-how-can-i-add-a-password-stength-check.html
I followed the exact procedure that was written there. In the beginning, the script worked just fine. But today I checked it again and I see that the script doesn't work anymore. I receive a "Uncaught ReferenceError: StrongPass is not defined" error.
How can I change this?
I followed the exact procedure that was written there. In the beginning, the script worked just fine. But today I checked it again and I see that the script doesn't work anymore. I receive a "Uncaught ReferenceError: StrongPass is not defined" error.
How can I change this?
Hi geertmartens,
It sounds as though the Strong Pass file isn't being loaded. So either the file isn’t there or the code to load it has been broken somehow. That is
Bob
It sounds as though the Strong Pass file isn't being loaded. So either the file isn’t there or the code to load it has been broken somehow. That is
$doc->addScript(JURI::root().'components/com_chronoforms/extras/StrongPass.js');
Bob
Hi Bob
The script is there though. I re-entered the code you mentioned above again, but still no effect.
The script is there though. I re-entered the code you mentioned above again, but still no effect.
Hi geertmartens,
Nothing much else that I can say from the information here :-( Please post a link to the form so I can take a quick look.
Bob
Nothing much else that I can say from the information here :-( Please post a link to the form so I can take a quick look.
Bob
HI geertmartens,
Ah, this is a timing problem in Joomla! 3 - the StrongPass code is being loaded before the MooTools library. Please add this extra line in the Load JS action:
Bob
Ah, this is a timing problem in Joomla! 3 - the StrongPass code is being loaded before the MooTools library. Please add this extra line in the Load JS action:
<?php
JHtml::_('behavior.framework', true); // << add this line
$doc =& JFactory::getDocument();
$doc->addScript(JURI::root().'components/com_chronoforms/extras/StrongPass.js');
?>
window.addEvent('domready', function() {
new StrongPass("password_1");
});
Hopefully that will fix the problem.
Bob
This topic is locked and no more replies can be posted.