[fw-general] Zend_Form_Element_Submit class attribute

2009-07-09 Thread Kostyantyn Shakhov
How to add a 'class' attribute to Zend_Form_Element_Submit element? It doesn’t recognize it whatever way I tried: $this-addElement( 'Submit', 'btn_search', array( 'label' = 'Search', 'decorators' = $this-buttonDecorators,

[fw-general] Dojo IE issues, ugrent assistance needed!

2009-07-08 Thread Kostyantyn Shakhov
I need to submit a Dojo form by pressing Enter or Space on a submit button. I use the following simple Dojo form with two submit buttons: form action= method=post id= input id=b2 name=b2 value=B2 type=submit / input id=b2 name=b2 value=B2 type=submit / /td The browser is IE7. If I use Dojo

[fw-general] Dojo IE issues

2009-07-03 Thread Kostyantyn Shakhov
If a dojo form has different submit buttons like (Save, Delete etc.) I think it’s a good practice to submit it to the same action and then redirect to an appropriate action based on the clicked button check. Some PHP frameworks with Dojo support have built-in methods for such checks like

[fw-general] Dojo 1.3.1 upgrade rises isChecked() method issue under IE

2009-07-01 Thread Kostyantyn Shakhov
I used Dojo 1.2.3 but it didn’t submit forms by clicking Enter or Space on a submit button. I found out that it was a Dojo issue and it was fixed in the latest releases. So, I upgraded Dojo to 1.3.1. The upgrade fixed the issue of submitting a form by keyboard and works very well in Firefox 3 but

[fw-general] Zend_Db adapter for ODBC

2009-05-11 Thread Kostyantyn Shakhov
I want to connect to MS Access database using ZF components but I haven't found Zend_Db adapter for ODBC. Does ZF have this kind of adapter or I need to use a third party one?

[fw-general] ViewScript decorator fails for DisplayGroup

2009-05-01 Thread Kostyantyn Shakhov
I’m trying to use a ViewScript decorator for DisplayGroup of a Zend_Form. The view script contains form elements wrapped in a table. It displays the group with the legend but omit the table html markup. How could I fix it? In the Form: $this-addDisplayGroup( array([fields]), '[group_name]',

[fw-general] dijit.byId issue for Zend_Dojo RadioButton

2009-04-29 Thread Kostyantyn Shakhov
There are RadioButton and CurrencyTextBox on the page and I’m trying to disable them but dijit.byId works fine for the CurrencyTextBox and returns undefined for the RadioButton. In the Form: $this-addElement( 'RadioButton', '[radio_button_id]', array( 'label' = 'label', 'multiOptions' = array(

[fw-general] Zend_Form DisplayGroup ViewScript decorator

2009-04-28 Thread Kostyantyn Shakhov
I’m trying to use a ViewScript decorator for DisplayGroup of a Zend_Form. The view script contains form elements wrapped in a table. In the Form: $this-addDisplayGroup( array([fields]), '[group_name]', array( 'legend' = '[name] ') ); $group = $this-getDisplayGroup('[group_name]'); $group

[fw-general] Dojo dijit undefined error

2009-04-23 Thread Kostyantyn Shakhov
I’m tying the code below. When the test() JS function is called by an onchange event everything works as intended and dijit.byId is defined but I get the error “dijit is undefined” for “onload”. What did I miss or do wrong? Many thanks for advices in advance. In the View: ?php

[fw-general] Dojo Dialog Component

2009-04-15 Thread Kostyantyn Shakhov
There is no Dojo Dialog dijit support in Zend_Dojo. How can I display it on the page? I use Zend_Dojo in programmatic mode.

[fw-general] dojo.connect issues

2009-04-15 Thread Kostyantyn Shakhov
Dojo setup is done and it's working. I'm trying the following in the view script: ?php $this-dojo()-onLoadCaptureStart(); ? function () { dojo.connect(dijit.byId([form id]), onSubmit, function() {alert('test')}); } ?php $this-dojo()-onLoadCaptureEnd(); ? The issues are: 1) dijit is always

[fw-general] MySQL PDO Write Error

2009-03-20 Thread Kostyantyn Shakhov
I got the following exception in the project located on windows server: exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[HY000]: General error: 1 Can't create/write to file 'C:\WINDOWS\TEMP\#sql_c48_0.MYI' (Errcode: 13)' in C:\...\Zend\Db\Statement\Pdo.php:227 I know that the error

[fw-general] Zend_Config_Xml Encoding Issue

2009-02-25 Thread Kostyantyn Shakhov
My view templates are in ISO-8859-1. I need to display a value from the xml config file on the page. The file is in the same enoding: ?xml version=1.0 encoding=iso-8859-1?. The value contains French é character. On the page it's displayed wrong as é and just fine if I change encoding to UTF-8 in

[fw-general] Objects Availability

2009-02-12 Thread Kostyantyn Shakhov
What's the best way to make objects available globally? I mean available in the following: 1) In action controllers; 2) In Forms; 3) In Views; Sure I can use registry and then assign these objects to the views and/or forms in action controllers but what if I want to make these objects

[fw-general] Zend_Dojo I18N

2009-01-30 Thread Kostyantyn Shakhov
I'm trying to setup I18N for Zend_Dojo namely for elements of Zend_Dojo_Form like drop-down calendar of DateTextBox etc. My steps are: 1) In the layout script: $this-dojo()-setDjConfigOption('extraLocale', 'fr-fr') -requireModule('dojo.i18n'); Nothing happened. The calendar's month name and

[fw-general] The Calendar of Dojo DateTextBox Translation

2009-01-29 Thread Kostyantyn Shakhov
Dojo has rich i18n capabilities. I use Dojo DateTextBox element in my instance of Zend_Dojo_Form. I wonder how to setup translation for this element. I mean if I use French translation for instance how to force the drop-down calendar to display the month name and weeks in French? I haven't found

[fw-general] File element for Zend_Dojo_Form

2009-01-29 Thread Kostyantyn Shakhov
Zend_Dojo_Form has elements like Button, CheckBox, RadioButton, SimpleTextarea which implement the same functionality as regular Zend_Form elements but allow you to keep you form elements in the same style/theme. Although there is Zend_Form_Element_File I haven't found an equivalent for