on page with dojo.require.
> <?
> $this->dojo()->javascriptCaptureStart();
> ?>
>
> dojo.require("dijit.form.Button");
> dojo.require("dijit.Dialog");
> dojo.require("dijit.form.TextBox");
> dojo.require("dijit.form.NumberTextBox");
> dojo.require("dijit.form.CheckBox");
> dojo.require("dijit.form.CheckBox");
> <?
> $this->dojo()->javascriptCaptureEnd();
> ?>
is possible to add automatically the require dijits (or add all with one
line of code)?
Matthew Weier O'Phinney ha scritto:
> -- mail@roccogalluzzo.com <mail@roccogalluzzo.com> wrote
> (on Wednesday, 25 February 2009, 03:08 PM +0100):
>> have tried to set a custom dojo form on a dijit.Dialog (have use
>> Ajaxcontest to print form without layout), now on dialog window don't
>> work dojo tha use for form field.How do to enable dojo on dialog box?
>
> You're not really giving enough detail here.
>
> One thing to be aware of, however, is that dijit.Dialogs are appended to
> the <body> node -- which means that the <body> tag needs to have a class
> attribute specifying the dijit them you're using in order for the dialog
> -- and its contents -- to be styled correctly.
>
> Second, when you're returning a form with dijits via XHR, then you need
> to use declarative markup when generating the form -- programmatic
> markup will not work. You can enable this easily in your view script:
>
> Zend_Dojo_View_Helper_Dojo::setUseDeclarative(true);
>
没有评论:
发表评论