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,
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
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
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
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?
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]',
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(
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
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
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.
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
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
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
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
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
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
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
17 matches
Mail list logo