Lee

If I remeber correctly, you would need to get the subString of the 
domainname. In this case it would be 1
IE: 


var domainname = document.domainname.subString(0,1).toUpperCase();


There are two major products that come out of Berkeley: LSD and [Unix] 
BSD. We don't believe this to be a coincidence.



Doug Brown
----- Original Message ----- 
From: "Lee Fuller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, January 26, 2002 3:13 PM
Subject: RE: Quick JS Question..


> Sorry.. If someone answered this question, but it appears that I 
changed
> my email rule list improperly, and it dumped the incomming CF-Talk
> messages.  Can someone repost?
> 
> Thanks!
> 
> Lee
> 
> 
> > -----Original Message-----
> > From: Lee Fuller [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, January 25, 2002 4:07 PM
> > To: CF-Talk
> > Subject: OT: Quick JS Question..
> > 
> > 
> > Ok.. Again for you JS gurus.. 
> > 
> > If I'm doing an auto-fill on a field on a form, based on the 
> > input already in another form (then onblur'd to trigger the 
> > auto-fill) and I want the first letter in the auto-filled 
> > field to be upper-case, and the rest lower, what's the 
> > function/event to make that work?
> > 
> > I have this now, and it works fine.. But I need the domain 
> > name to be upper-case on the first letter only...
> > 
> > function autoFills() {
> >     if( document.domainrecord.domainname.value != '' ) {
> > document.domainrecord.hostdesc.value = "(Type)" 
> > + document.domainrecord.domainname.value;
> >       return true;
> >     }
> > }
> > 
> > Figured one of you prolly has a 2 second fix for this.
> > 
> > TTAIA
> > 
> > Lee 
> > 
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to