I think you should not check for specific protocol, just for URL validity.
JavaScript implementation might be hard unless it makes Ajax request to the
server for validation - in this case it'd be easy to use
http://us2.php.net/manual/en/intro.filter.php - I just implemented it for
Widgets, for example.

         Sergey


On Mon, Feb 16, 2009 at 10:40 PM, Yaron Koren <[email protected]> wrote:

> Well, I just looked it up, and Wikipedia lists dozens of valid "URI
> schemes" (apparently that's the term for the part of the URL before the
> colon):
>
> http://en.wikipedia.org/wiki/URI_scheme#Official_IANA-registered_schemes
>
> It doesn't seem feasible to me to specifically check against each one of
> those. How do you propose that it be done?
>
> (And I should note that, if you actually create new Javascript code to do
> the validation, this change is much more likely to get implemented. :) )
>
> -Yaron
>
>
>
> On Sat, Feb 14, 2009 at 1:29 AM, Sergey Chernyshev <
> [email protected]> wrote:
>
>> I'm creating a form for entering different URLs and some of them are not
>> necessarily http URLs (e.g. mailto:, ical:).
>> Semantic Forms for some reason only limits URLs to HTTP:// ones.
>>
>> I think URL type should be broaden to any kind of valid URLs.
>>
>>            Sergey
>>
>>
>> --
>> Sergey Chernyshev
>> http://www.sergeychernyshev.com/
>>
>>
>>
>
> >
>


-- 
Sergey Chernyshev
http://www.sergeychernyshev.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to