Issues

ZF-6361: Zend Dojo

Issue Type: Bug Created: 2009-04-21T08:34:22.000+0000 Last Updated: 2011-02-18T09:39:39.000+0000 Status: Resolved Fix version(s): Reporter: Alexey Milotsky (spalax) Assignee: Ralph Schindler (ralph) Tags: - Zend_Dojo

Related issues: Attachments:

Description

Seems to zendDijits variable generated in Zend_Dojo_View_Helper_Dojo_Container::registerDijitLoader not available when dojo onload event happening.

<pre class="highlight">
$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 :

<pre class="highlight">

In FF form submission works fine, but in IE 6 form is submitting but in POST array some strange values :

<pre class="highlight">
FF :
   Array
(
    [useremail] => spalax@spalax.com
    [userpassword] => spalax
    [submit] => submit
    [PHPSESSID] => 8747fa8692c46ac8c86f383448509838
)

IE :
Array
(
    [submit] => <span class="dijitReset dijitInline"><span class="dijitReset dijitToggleButtonIconChar">✓</span></span><span class="dijitReset dijitInline dijitButtonText">submit</span>
    [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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts