FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Invoke server function on edit box onBlur
Invoke server function on edit box onBlur
Débuté par Chris, 18 avr. 2012 11:52 - 2 réponses
Connectez-vous…
Chris
#1
Posté le 18 avril 2012 - 11:52
Hello,
I have a registration form. One of the fields is a text box (edit control) asking for the username. What I want to do, as most webapps these days do, is to automatically check if the username is available when the user tabs off of the field, without waiting to hit a submit button.
In the ideal world, I'd just code a HReadSeekFirst/If HFound in the onBlur event but that is not allowed in the browser code. So, how do I enter browser code, that will call a server procedure, or to accomplish the above?
Thanks
Chris
Signaler
0
0
Herro Wijnholds
#2
Posté le 22 octobre 2012 - 13:49
Hello,
I have also the sam question. Does anyone know how to do this?
I'm just starting with WebDev... so maybe it's a stupid question..
Chris wrote in news message <7de6db3f543e2989a093ea13ebc52456@news.pcsoft>:
Hello,
I have a registration form. One of the fields is a text box (edit control) asking for the username. What I want to do, as most webapps these days do, is to automatically check if the username is available when the user tabs off of the field, without waiting to hit a submit button.
In the ideal world, I'd just code a HReadSeekFirst/If HFound in the onBlur event but that is not allowed in the browser code. So, how do I enter browser code, that will call a server procedure, or to accomplish the above?
Thanks
Chris
Signaler
0
0
Bob Stratton
#3
Posté le 31 octobre 2012 - 08:30
Yes.
1. Create a Server procedure to do the lookup. It must return a value.
2. Call it via Ajaxexecute in the browser code of your field.
3. Do conditional browser side stuff.
That's the principle. I do it myself on my sites
Cheers
Bob
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte