• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

User Name Validation

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got it.
 
Jim Bertorelli
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Except the page is dynamically generated by the perl program.
 
Jim Bertorelli
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic