RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
> > Ben Sgro (ProjectSkyline) wrote: > >> Hello, > >> Yeah, I just hacked up this: > >> . " onfocus=\"this.value=''\">" > >>. " >> onfocus=\"this.value=''\" onfocus=\"this.type='password'\">" > >> What im trying to do is turn that type to a password..so > I can see the

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
e trick! - Ben Ben Sgro, Chief Engineer ProjectSkyLine - Defining New Horizons - Original Message - From: "Rolan Yang" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Wednesday, June 06, 2007 10:03 PM Subject: Re: [nyphp-talk] Removing Text from an Input Box Ben

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Rolan Yang
Ben Sgro (ProjectSkyline) wrote: Hello, Yeah, I just hacked up this: . "" . "onfocus=\"this.value=''\" onfocus=\"this.type='password'\">" What im trying to do is turn that type to a password..so I can see the text...is that possible. - Ben I'm not clear on wheth

[nyphp-talk] Removing Text from an Input Box - Thanks!

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello, Thanks for everyones response, it is much appreciated! I decided to work with the code provided by Andy Dirnberger, thank you. - Ben Ben Sgro, Chief Engineer ProjectSkyLine - Defining New Horizons ___ New York PHP Community Talk Mailing Li

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
alue != "Password"){ id.type = "password"; } else { id.type = "text"; } } - Original Message - From: "Andy Dirnberger" <[EMAIL PROTECTED]> To: "'NYPHP Talk'" Sent: Wednesday, June 06, 2007 9:08 PM Subject: RE: [

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
At present I only have IE and FF installed and it works in both of those. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Armendariz Sent: Wednesday, June 06, 2007 9:05 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box Is the de

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
sday, June 06, 2007 9:02 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) What im trying to do is turn that type to a password..so I

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
Is the defaultValue property cross-browser (and platform)? Mark _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Dirnberger Sent: Wednesday, June 06, 2007 8:54 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box is a bit mor

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
une 06, 2007 8:53 PM Subject: RE: [nyphp-talk] Removing Text from an Input Box is a bit more complete. Or can replace empty values with your label. function clearText (el) { if (el.defaultValue == el.value) el.value = ""; } function restoreT

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Patrick May
Now your passwords are screen-visible function clearField(id, value) { if (id.value == value) { id.value = ""; } } function restoreField(id, value) { if (id.value == "") { id.value = value; } } On Jun 6, 2007, at 8:44 PM, Ben Sgro ((ProjectSkyline)) wrote: Hello, T

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) What im trying to do is turn that type to a password..so I can see the text...is that possible. Yes it is possible to change a field type to text and then back to password

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
t: Re: [nyphp-talk] Removing Text from an Input Box Hello, Yeah, I just hacked up this: . "" . "" What im trying to do is turn that type to a password..so I can see the text...is that possible. - Ben Ben Sgro, Chief Engineer Proj

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
L PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Dirnberger Sent: Wednesday, June 06, 2007 8:48 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box I usually do something like the following to clear the value. Keep in mind that when the type is set to

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
Don't forget to wrap teh onBlur to check if they entered something different. - Original Message - From: CED To: NYPHP Talk Sent: Wednesday, June 06, 2007 8:48 PM Subject: Re: [nyphp-talk] Removing Text from an Input Box Set the text as the value, then set it blank on

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
rom: Andy Dirnberger To: 'NYPHP Talk' Sent: Wednesday, June 06, 2007 8:47 PM Subject: RE: [nyphp-talk] Removing Text from an Input Box I usually do something like the following to clear the value. Keep in mind that when the type is set to password your text will alway

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Nelly Yusupova
p-talk] Removing Text from an Input Box Hello, This is more of a JS question, but I'm going to ask it anyways. I just got the book, "Pro Javascript Techniques" (Apress) and what sucks is that many of the examples do not work. What I want to do is have to input boxes, a username and

Re: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread CED
-- From: Ben Sgro (ProjectSkyline) To: NYPHP Talk Sent: Wednesday, June 06, 2007 8:44 PM Subject: [nyphp-talk] Removing Text from an Input Box Hello, This is more of a JS question, but I'm going to ask it anyways. I just got the book, "Pro Javascript Techniques" (A

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Andy Dirnberger
D] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) Sent: Wednesday, June 06, 2007 8:44 PM To: NYPHP Talk Subject: [nyphp-talk] Removing Text from an Input Box Hello, This is more of a JS question, but I'm going to ask it anyways. I just got the book, "Pro J

[nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Ben Sgro \(ProjectSkyline\)
Hello, This is more of a JS question, but I'm going to ask it anyways. I just got the book, "Pro Javascript Techniques" (Apress) and what sucks is that many of the examples do not work. What I want to do is have to input boxes, a username and password. Instead of having labels next to them suc