1. Request object error
If you have errors in the request object when trying to make your forms to
use dojo, here is some clue. Dojo dijits uses some html templates and
.htaccess usually is not prepared for this.

.htaccess code:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php


2. There is some error in the distribution that I have from zf. 1.6
I jave requests to this path:

http://zf.mysite.com/js/dojo/dijit/form/nls/en/validate.js

But then english version of this script is not there, is in the parent
folder.. just the english one.
http://zf.mysite.com/js/dojo/dijit/form/nls/validate.js

Can someone point how to make a good compilation of the dojo library so we
wont have this problems?

3. I want to validate a text field for emails. The below sintax is correct
as Zend_Dojo_Form_Element inherits from regular Zend_Form_Element to which I
can add validators for email. This means that dojo should make use of this
validator on user side or I have to add a special validator plugin of Dojo
itself in order to do the validation?

                $email = new Zend_Dojo_Form_Element_TextBox( 'email' );
                $email
                        ->setLowercase( true )
                        ->setMaxLength(40)
                        ->setFilters(
                                array(
                                        new Zend_Filter_StringToLower(),
                                        new Zend_Filter_StringTrim()
                                )
                        )       
                        ->setLabel('Email')
                        ->addValidator( new Zend_Validate_EmailAddress())
                        ->setRequired( true )
                        ;

Thanks
-- 
View this message in context: 
http://www.nabble.com/Zend_Dojo_Form-errors-tp19453531p19453531.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to