> > 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
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
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
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
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: [
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
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
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
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
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
>> 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
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
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
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
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
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
--
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
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
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
19 matches
Mail list logo