ZF-6361: Zend Dojo
Description
Seems to zendDijits variable generated in Zend_Dojo_View_Helper_Dojo_Container::registerDijitLoader not available when dojo onload event happening.
$userlogin = new Zend_Dojo_Form_Element_ValidationTextBox('useremail');
$userlogin->setLabel(Zend_Registry::get('t')->_('Email').' :')
->addValidator(new Zend_Validate_EmailAddress())
->setRequired(true)
->addFilter('StringToLower')
->setDijitParams(array('regExp'=>'\b[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b',
'invalidMessage'=>Zend_Registry::get('t')->_('Invalid email address')));
$userpassword = new Zend_Dojo_Form_Element_PasswordTextBox('userpassword');
$userpassword->setLabel(Zend_Registry::get('t')->_('Password').' :')
->addFilter('StringTrim')
->setRequired(true)
->setDijitParams(array('regExp'=>'^[a-z0-9\_]{6,10}$',
'invalidMessage'=>Zend_Registry::get('t')->_('Invalid password;must be at least 6 alphanumeric characters')));
$submit = new Zend_Dojo_Form_Element_SubmitButton('submit');
In source of output html page you can see block like below :
In FF form submission works fine, but in IE 6 form is submitting but in POST array some strange values :
FF :
Array
(
[useremail] => spalax@spalax.com
[userpassword] => spalax
[submit] => submit
[PHPSESSID] => 8747fa8692c46ac8c86f383448509838
)
IE :
Array
(
[submit] => ✓submit
[PHPSESSID] => 55490e7e2fedb419ccad56aecafa487b
)
Comments
Posted by Ralph Schindler (ralph) on 2011-02-18T09:39:39.000+0000
This seems like a problem with dojo, not ZF, if you can please provide some more context around the problem and if its still an issue with the latest Dojo/ZF releases.