[tw] Re: Validation

2016-10-20 Thread Tobias Beer
Hi Marion,

The problem is, that the implementation isn't user-friendly and there is no 
> docs. 
> It defines "black-list" characters. IMO you need a "white-list". ... But 
> I'm not sure, which chars you want to allow. ... 
>

What do you need the white list for?

Generic means of form validation aren't quite the same thing
as checking tiddler titles for potential issues.

Preventing a user from even entering certain characters
may be a meaningful extension to the edittext widget.

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e612ad54-3cd4-4086-a4b7-19bc64751e11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Validation

2016-10-20 Thread PMario
On Thursday, October 20, 2016 at 7:36:19 AM UTC+2, Mr. Mal wrote:
>
> Thanks for fast reply. Sorry have other thing to do. So basicly I want to 
> make a form for registration. It would be nice to have some validation to 
> make the input accurate and reliable. See attachment for detail.
>
> I just want to make the input for the name only accept character and few 
> symbol just like database. 
>

The tiddler title edit mode has a pattern detection. eg: Create a new 
tiddler and use "[] test" as a title. You'll see, what it does. 
The problem is, that the implementation isn't user-friendly and there is no 
docs. 
It defines "black-list" characters. IMO you need a "white-list". ... But 
I'm not sure, which chars you want to allow. ... 

IMO forget the up and down arrows for the age. Users should enter a number. 
Otherwise you'd probably need a list from 0 up to 111+, which is 
inconvenient anyway. 

see:
http://tiddlywiki.com/#%24%3A%2Flanguage%2FEditTemplate%2FTitle%2FBadCharacterWarning:%24%3A%2Flanguage%2FEditTemplate%2FTitle%2FBadCharacterWarning%20%24%3A%2Fcore%2Fui%2FEditTemplate%2Ftitle

-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/69069df3-8a08-4384-b69f-20611cb8c8b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Validation

2016-10-19 Thread Mr. Mal
Hi PMario.

Thanks for fast reply. Sorry have other thing to do. So basicly I want to 
make a form for registration. It would be nice to have some validation to 
make the input accurate and reliable. See attachment for detail.

I just want to make the input for the name only accept character and few 
symbol just like database. 

Thank you.



On Sunday, October 16, 2016 at 5:03:47 PM UTC+8, PMario wrote:
>
> Hi Mr. Mal,
>
> On Sunday, October 16, 2016 at 9:43:18 AM UTC+2, Mr. Mal wrote:
>>
>> Can we put validation at edittext form
>>
>
> h, ... not with that much specification. ... IMO your request can mean 
> everything, so I doubt someone will touch it. ... 
>
> ...
>
> h, ... maybe ... if we would know, what you have in mind?
>
> 
>
> TiddlyWiki already has some sort of "input validation" if you look a the 
> "tag", "field" or "tiddler-type" input editors. Those editors show a list 
> of specific values, that are possible ... and ... you can enter a new 
> value, which isn't part of the list. 
>
>
>- Would this be an option for your use-case?  
>- If yes it should be straight forward and "relatively" simple to 
>   implement something. 
>   - If no ... more work and more info will be needed. 
>   
>
> Just some thoughts: 
>
>
> It should be possible to add a new parameter to the <$edit-text> widget 
> eg: "validate-format", which contains a regexp that describes the format, 
> which is expected. .. The advantage of regexp'ses is, that they have "super 
> powers" ... but ... the disadvantage is, that they get complicated very 
> fast and are not suitable for every user. 
>
>
> A second possibility would be to create something like the "date-format" 
> see: http://tiddlywiki.com/#DateFormat  to describe, what is expected. 
> The advantage here is, it's simpler for users but exponentially more work 
> to implement. .. Since we would need to create a "new validation language" 
> first, that fits our needs. 
>
>
> -
>
>
> So *how does your input look like* and *how can we describe it*, so that 
> a validation mechanism can check it?
>
>
> have fun!
>
> mario
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c2bd2d44-63ac-45af-b9ff-b5a90e4b0c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Validation

2016-10-16 Thread PMario
Hi Mr. Mal,

On Sunday, October 16, 2016 at 9:43:18 AM UTC+2, Mr. Mal wrote:
>
> Can we put validation at edittext form
>

h, ... not with that much specification. ... IMO your request can mean 
everything, so I doubt someone will touch it. ... 

...

h, ... maybe ... if we would know, what you have in mind?



TiddlyWiki already has some sort of "input validation" if you look a the 
"tag", "field" or "tiddler-type" input editors. Those editors show a list 
of specific values, that are possible ... and ... you can enter a new 
value, which isn't part of the list. 


   - Would this be an option for your use-case?  
   - If yes it should be straight forward and "relatively" simple to 
  implement something. 
  - If no ... more work and more info will be needed. 
  

Just some thoughts: 


It should be possible to add a new parameter to the <$edit-text> widget eg: 
"validate-format", which contains a regexp that describes the format, which 
is expected. .. The advantage of regexp'ses is, that they have "super 
powers" ... but ... the disadvantage is, that they get complicated very 
fast and are not suitable for every user. 


A second possibility would be to create something like the "date-format" 
see: http://tiddlywiki.com/#DateFormat  to describe, what is expected. The 
advantage here is, it's simpler for users but exponentially more work to 
implement. .. Since we would need to create a "new validation language" 
first, that fits our needs. 


-


So *how does your input look like* and *how can we describe it*, so that a 
validation mechanism can check it?


have fun!

mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8f01e5a4-d84a-4f70-b4af-f9ccfea8abba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.