PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Invoke server function on edit box onBlur
Invoke server function on edit box onBlur
Started by Chris, Apr., 18 2012 11:52 AM - 2 replies
Connect yourself…
Chris
#1
Posted on April, 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
Report
0
0
Herro Wijnholds
#2
Posted on October, 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
Report
0
0
Bob Stratton
#3
Posted on October, 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
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text