Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Http protocol
Message
De
02/01/2002 13:52:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00598769
Message ID:
00599869
Vues:
16
>>I have a URL field bound to a textbox on a form. Next to the textbox is a button that will open IE; or whatever the registered browser is; and navigate to the URL in the textbox.
>>
>>The users have found out that they can enter local addresses (c:\ or \\computername\c:) and be able to browse them. My client does not like this!
>>
>>They want me to block navigating to any URL that is not http protocol. Is there any way to do this other than forcing them to put 'http://' at the beginning of the URL?
>>
>>What I'm looking for is a function that will take a string and return a True if it is http and False if not. Does anything like this exist?
>
>Dan,
>
>Before you work this out, how to prevent your users anyhow from typing such an "URL" once in IE (or whatever) ? I mean, if THAT can't be done (can it ?), don't bother this I'd say ...

Have you tried evaluating the users's input before they browse the URL?
kind of

press button
check if HTTP:// is there
go to the URL
//if not
message("you did not enter a valid HTTP URL")



marcos oliva
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform