GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
Invoke server function on edit box onBlur
Invoke server function on edit box onBlur
Iniciado por Chris, abr., 18 2012 11:52 AM - 2 respostas
Conecte-se…
Chris
#1
Publicado em abril, 18 2012 - 11:52 AM
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
Denunciar
0
0
Herro Wijnholds
#2
Publicado em outubro, 22 2012 - 1:49 PM
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
Denunciar
0
0
Bob Stratton
#3
Publicado em outubro, 31 2012 - 8:30 AM
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
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto