FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
Invoke server function on edit box onBlur
Invoke server function on edit box onBlur
Iniciado por Chris, 18,abr. 2012 11:52 - 2 respuestas
Conéctese…
Chris
#1
Publicado el 18,abril 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
Informar
0
0
Herro Wijnholds
#2
Publicado el 22,octubre 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
Informar
0
0
Bob Stratton
#3
Publicado el 31,octubre 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
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto