Re: Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Samuel Pelletier
Calven,

I checked the AjaxDatePicker component source (the .wo part) and otherTagString 
was passed to the input field.The otherTagString binding is present on many 
components, it is a string that is added inside the tag, it may contains 
anything even something like otherTagString = "required pattern = 
\"[0-9]{4}-[0-9]+-[0-9]+\"" when using the Foundation Abide plunging for form 
validation.

Samuel

> Le 2016-01-11 à 12:05, Calven Eggert  a écrit :
> 
> That is Fantastic!  how did you find out about the otherTagString?
> 
> Calven
> 
> 
>> On Jan 11, 2016, at 11:51 AM, Samuel Pelletier > > wrote:
>> 
>> Hi Calven,
>> 
>> I found a way by setting the readonly attribute of the input. Ideally, the 
>> bonding would be available (I will create a pull request) but in the mean 
>> time, you can add this binding to do the same: otherTagString="readonly"
>> 
>> I discovered the readonly attribute lately, it is cool because it allows the 
>> content to be selected and copied when disabled, except in Safari, does not 
>> allows the selection and copy of an input field content.
>> 
>> Regards,
>> 
>> Samuel
>> 
>>> Le 2016-01-11 à 10:07, Calven Eggert >> > a écrit :
>>> 
>>> Anyone know of a way to disable the AjaxDatePicker so that input can only 
>>> be done in the calendar that displays? (Basically, disable the WOTextField, 
>>> but allow the onclick to get triggered)
>>> 
>>> 
>>> Calven
>>> 
>>> 
>>> 
>>> Calven
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>>> )
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>>> 
>>> 
>>> This email sent to sam...@samkar.com 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Calven Eggert
That is Fantastic!  how did you find out about the otherTagString?

Calven


> On Jan 11, 2016, at 11:51 AM, Samuel Pelletier  wrote:
> 
> Hi Calven,
> 
> I found a way by setting the readonly attribute of the input. Ideally, the 
> bonding would be available (I will create a pull request) but in the mean 
> time, you can add this binding to do the same: otherTagString="readonly"
> 
> I discovered the readonly attribute lately, it is cool because it allows the 
> content to be selected and copied when disabled, except in Safari, does not 
> allows the selection and copy of an input field content.
> 
> Regards,
> 
> Samuel
> 
>> Le 2016-01-11 à 10:07, Calven Eggert > > a écrit :
>> 
>> Anyone know of a way to disable the AjaxDatePicker so that input can only be 
>> done in the calendar that displays? (Basically, disable the WOTextField, but 
>> allow the onclick to get triggered)
>> 
>> 
>> Calven
>> 
>> 
>> 
>> Calven
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com 
>> )
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>> 
>> 
>> This email sent to sam...@samkar.com
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Samuel Pelletier
Hi Calven,

I found a way by setting the readonly attribute of the input. Ideally, the 
bonding would be available (I will create a pull request) but in the mean time, 
you can add this binding to do the same: otherTagString="readonly"

I discovered the readonly attribute lately, it is cool because it allows the 
content to be selected and copied when disabled, except in Safari, does not 
allows the selection and copy of an input field content.

Regards,

Samuel

> Le 2016-01-11 à 10:07, Calven Eggert  a écrit :
> 
> Anyone know of a way to disable the AjaxDatePicker so that input can only be 
> done in the calendar that displays? (Basically, disable the WOTextField, but 
> allow the onclick to get triggered)
> 
> 
> Calven
> 
> 
> 
> Calven
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
> 
> This email sent to sam...@samkar.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Disable WOTextField Input when using AjaxDatePicker

2016-01-11 Thread Calven Eggert
Anyone know of a way to disable the AjaxDatePicker so that input can only be 
done in the calendar that displays? (Basically, disable the WOTextField, but 
allow the onclick to get triggered)


Calven



Calven


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com