Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User Name Validation

 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jim Bertorelli
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ram Dhan Yadav K
Ranch Hand
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it.
 
Jim Bertorelli
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 321
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except the page is dynamically generated by the perl program.
 
Jim Bertorelli
Ranch Hand
Posts: 136
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic