home | contact us
» zend framework » Zend Dojo Form Input Size + Solution

BLOG CATEGORY: zend framework


Problem:
You are dutifully setting your size attribute in your Zend Form class and you input elements are being rendered with that size attribute. However if Javascript is enabled and you are using Dojo for your forms, the size attribute gets dropped.

Solution:
To set the width on dojo form elements you must use the width css operator. eg

$form->getElement('blah')->setAttrib('style'=>'width: 50em;');

So simple once you know how!

More…


Click Here to Contact Us about Zend Dojo Form Input Size + Solution
 

Comments

No Comments

Leave a Reply

rss icon