Re: How to select only fridays in DateTextBox ?

View: New views
1 Messages — Rating Filter:   Alert me  

Re: How to select only fridays in DateTextBox ?

by Kerstin-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello list, hi David,
did you get this working. I search something similar.

I'm very new to this list and Dojo.

I wonder how I involve the function in my code. As constraint?

Greetings
Kerstin

$out_cont .= '<input type="text" name="datum" value="'.$datum.'"
                        dojoType="dijit.form.DateTextBox"
                        promptMessage="Bitte Datum eintragen"
                        constraints="{max:\''.$heute.'\'}"
                        invalidMessage="Eingabe ungültig. Bitte geben Sie das
Datum im Format TT.MM.JJJJ an."
                        required="true" />';


Karl Tiedt schrieb:

> If DateTextBox passes it correctly, you can use isDisabledDate:
> fucntion(d) { return !(d.getDay == 5) }
>
> //note: this is a function of dijit._Calendar which is what the
> DateTextBox is displaying. -- also not sure this will affect typed in dates
>
> -Karl Tiedt
>
>
> On Fri, Jul 17, 2009 at 12:15, David Ulrich <bordel@...
> <mailto:bordel@...>> wrote:
>
>     Hi,
>
>     I’m new to this list.
>
>     I discovered dojo with Zend Framework since few month now and I am
>     stuck with datetextbox.
>
>     I search to select only Fridays in DateTextBox but I can’t find how
>     and if it is possible…
>
>      
>
>     Thanks,
>
>     David
>
>      
>
>
>     _______________________________________________
>     FAQ: http://dojotoolkit.org/support/faq
>     Book: http://dojotoolkit.org/docs/book
>     Forums: http://dojotoolkit.org/forum
>     Dojo-interest@...
>     <http://dojotoolkit.org/forum%0ADojo-interest@...>
>     http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest@...
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://docs.dojocampus.org
Dojo-interest@...
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest