wood burning stoves 2.0*
The moose likes Ranch Office and the fly likes User Name Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "User Name Validation" Watch "User Name Validation" New topic
Author

User Name Validation

Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Hi,
I have seen lots of times some bartender asking a newly registered participent to change name and asking them to go the javaranch naming policy page.
What keeps puzzling me is, why can't you do a simple client validation of the username in the first place.
thanks,
ramdhan yk

Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Jim Bertorelli
Ranch Hand

Joined: Nov 28, 2001
Posts: 136
Yeah....may be just put some javascript code. I know that's not fool proof but it'll still be helpful.
I am not a JS guy but let me see if I can write it. I'll post it here for your comments....
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
I am also not a java script guy.
well, guess bartenders should be relieved of #Type Checking# the user name visually
Ramdhan YK
Jim Bertorelli
Ranch Hand

Joined: Nov 28, 2001
Posts: 136
OK, here I go...

The above function can be called when the user clicks on the submit button

I know you are all smart guys...this should be easy for you.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Unfortunately the UBB software that JavaRanch uses was written in Perl and CGI. If we hack it, when we upgrade we lose the hacks. This has been discussed quite a few times before.
Since we are hoping to get an upgrade in the "not to distant future" (perhaps I am being optimistic), now would not be a great time to get into alot of hacking effort.
Any donations to Paul Wheatons penny jar would be helpful (and keep Brenda from going after him with a frying pan if he uses the grocery money). The best way to do that would be to buy some books from amazon using links from the BunkHouse.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
i got it.
Jim Bertorelli
Ranch Hand

Joined: Nov 28, 2001
Posts: 136
But I think you just have to put the javascript code in the html page. You don't need to modify the perl code at all! It's just a couple of lines of change.
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
Jim, makes sense. just need to push the html and javascript content to browser and the validation will be done on the client side itself.
What do you think cindy?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Except the page is dynamically generated by the perl program.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Jim Bertorelli
Ranch Hand

Joined: Nov 28, 2001
Posts: 136
hmmm....I'm sorry if I sound a little pushy but what's dynamic in that page? I'll bet that the perl program is picking up some static html file and serving it up. You have already customized it's look by inserting html so what's the big deal in adding a couple of lines more?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
There is not static html page. The basic content of the registration page is saved as cgi files and dynamic html is generated based on a bunch of administrative options in the UBB Control panel to allow specific customization.
There is no place in the UBB Control panel to allow for additional functionality to be inserted into the registration page.
You can research the software capabilities at Infopop.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Originally posted by Jim Bertorelli:
hmmm....I'm sorry if I sound a little pushy but what's dynamic in that page? I'll bet that the perl program is picking up some static html file and serving it up. You have already customized it's look by inserting html so what's the big deal in adding a couple of lines more?

You can specify which options are available on the registration page. This is done through an admin function that comes with the product. The perl program then dynamically builds the registration page based on which functions you have activated. For example, you can specify that no registration is complete until the user has responded to a verification e-mail.
 
jQuery in Action, 2nd edition
 
subject: User Name Validation
 
Similar Threads
RHE?
Forms
j_security_check in general LOGIN page
Cleared SCJP2 !!
Wheres the ................