Did you ever figure this out? I'm having the same problem with 1.7.8.

Joe Theplumber wrote:
> 
> I'm having a problem with Zend_Dojo_Form_Element_DataTextBox and ZF 1.7.
> 
> If I try to create a simple DateTextBox, I get an error in Firebug
> (textbox is undefined in bootstrap.js line 672).
> 
> I have tried to isolate to as simple as a form as possible like this:
> 
> 337     public function dateAction(){
> 338         Zend_Dojo::enableView($this->view);
> 339 
> 340         Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
> 341 
> 342         $form=new Zend_Form();
> 343        $name = $form->createElement('text', 'name')
> 344                    ->setLabel('Your full name')
> 345                    ->setRequired(true);
> 346         $birthday = new
> Zend_Dojo_Form_Element_DateTextBox('birthday');
> 347                 $birthday->setLabel('Birthday');
> 348         
> 349         
> 350         $submit=new Zend_Form_Element_Submit('here');
> 351 
> 352 
> 353         $form->addElements(array($name,$birthday,$submit));
> 354         $this->view->form=$form;
> 355 
> 356     }
> witth view:
> <?=$this->form ?>
> 
> I get the error 'textbox is undefined on line 672 of bootstrap.js and the
> textbox doesn't render. Any help what is cauing this error would be
> apprecidated.
> 
> Here's outputed html:
> 
> <html>
>     <head>
>         <title>Content Frame</title>
>         <link rel="stylesheet" type='text/css' href='/fadmin/styles.css'
> />
> <style type="text/css">
> <!--
>     @import "/fadmin/app/js/dojo/dijit/themes/tundra/tundra.css";
> -->
> </style>
> <script type="text/javascript">
> //<!--
>     var djConfig = {"parseOnLoad":true};
> //-->
> </script>
> <script type="text/javascript" src="/app/js/dojo/dojo/dojo.js"></script>
> 
> <script type="text/javascript">
> //<!--
> dojo.require("dijit.form.DateTextBox");
>     dojo.require("dijit.form.Form");
> //-->
> 
> 
> </script>
>  </head>
> <body class='tundra'>
> <form enctype="application/x-www-form-urlencoded" action="" method="post"
> name="" dojoType="dijit.form.Form"><dl class="zend_form">
> <dt><label for="name" class="required">Your full name</label></dt>
> <dd>
> <input type="text" name="name" id="name" value=""></dd>
> <dt><label for="birthday" class="optional">Birthday</label></dt>
> <dd>
> <input id="birthday" name="birthday" value="" type="text"
> dojoType="dijit.form.DateTextBox"></dd>
> <dt>&nbsp;</dt><dd>
> <input type="submit" name="here" id="here"
> value="here"></dd></dl></form></body>
> 
> 
>       
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-Zend_Dojo_Form_Element_DataTextBox----textbox-undefined-tp20628942p22795087.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to