textbox

J

joy

hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..
 
L

-Lost

joy said:
hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..

If I understand correctly:

function giveDate()
{
var d = new Date;
return (d.getMonth() + 1) + '/' + d.getDate() + '/' + d.getFullYear();
}

document.forms['form_name'].elements['text_input_name'].value = giveDate();

Assuming a form named (or ID'd) 'form_name', and a text input named 'text_input_name',
that is also disabled (disabled="disabled").

-Lost
 
D

Dr J R Stockton

In comp.lang.javascript message <JaGdnck7pPVJI7XbnZ2dnUVZ_vCknZ2d@comcas
If I understand correctly:

I don't think you do.
function giveDate()
{
var d = new Date;
return (d.getMonth() + 1) + '/' + d.getDate() + '/' + d.getFullYear();
}

How would that put / in positions 3 & 6, except in November and December
after the 9th?

Why assume the OP wants an FFF date? He may be normal, and want the
month in the middle.

If you had earlier given a workable E-mail address, you would have had
E-mail.
 
L

-Lost

Dr J R Stockton said:
In comp.lang.javascript message <JaGdnck7pPVJI7XbnZ2dnUVZ_vCknZ2d@comcas


I don't think you do.

You are right!
How would that put / in positions 3 & 6, except in November and December
after the 9th?

Beats me. I swore it was a 2-digit month. Then again I wrote that around 9AM, and had
not slept yet.

Also, to be fair, I would have sent them to your JavaScript Date page, but I can neither
read your code without headache nor properly explain most of what I find there.

I thought giving a trivial example along the lines of what the original poster wanted,
might suffice. Stressing might.
Why assume the OP wants an FFF date? He may be normal, and want the
month in the middle.

Believe me, the first thing I wrote was yy(yy)/mm/dd. However, that was not what I
assumed the original poster was requesting.
If you had earlier given a workable E-mail address, you would have had
E-mail.

Not trying to be rude or anything, but why would I have received an e-mail from you? Why
would I want to receive an e-mail from you?

Perusing this newsgroup with a valid e-mail resulted in me being placed on some moronic
spam list. I like how it is now. There is no reason to e-mail me personally (at least, I
don't think there is).

You got me paranoid, I had to check your "failed email" page. I am not going to be the
4/20 entry am I?

Speaking of which, you spelled which "whivh" on that page.

-Lost
 
E

Evertjan.

Randy Webb wrote on 21 apr 2007 in comp.lang.javascript:

However, JRS is just stating his believe that,
if Lost had given a workable E-mail address earlier,
he would have had email, period.

".. why would I have received an e-mail from you?", is a valid question
without the presumed "from you", but outside JRS'es statement scope.

"Why would I want to receive an e-mail from you?"
is a presumed condition, since JRS only states that Lost would have got
email, not that such [an] email was conditional on a request or desire
[perhaps subconcious, at least unwritten] by Lost.

If the parsing of a simple human line is loaded by so many "expected"
presumptions that are factually out of scope, the scope limits being set by
the tread parent, it is obvious that so much computer language lines "do
not work" "as expected", and that the likes of JRS have a valuable input in
this NG.

Randy's admonishmant to "Meet JRS" is in the above sense completely within
scope.

I will not comment on "Not trying to be rude or anything" or anything for
now.

;-'}
 
D

Dr J R Stockton

In comp.lang.javascript message <ZoGdnXLhRIbMzbTbnZ2dnUVZ_qmpnZ2d@comcas
Not trying to be rude or anything, but why would I have received an e-mail from you?

Because I aimed one in what I thought might (possibly) be the required
direction. One should give or imply only addresses that one has
permission to use; and an address should be working, or be working after
an obvious transformation, or be obviously non-working.
Why
would I want to receive an e-mail from you?

Sometimes one is pleased to have received mail even if one had not been
wanting it.
Perusing this newsgroup with a valid e-mail resulted in me being placed on some moronic
spam list. I like how it is now. There is no reason to e-mail me personally (at least, I
don't think there is).

You got me paranoid, I had to check your "failed email" page. I am not going to be the
4/20 entry am I?

Certainly not; that would be an invalid date. As it happens, it's an
04-04, belatedly added. But I normally use it only when I have no other
means of communication.
Speaking of which, you spelled which "whivh" on that page.

Fixed, thanks.
 
L

-Lost

Dr J R Stockton said:
In comp.lang.javascript message <ZoGdnXLhRIbMzbTbnZ2dnUVZ_qmpnZ2d@comcas


Because I aimed one in what I thought might (possibly) be the required
direction. One should give or imply only addresses that one has
permission to use; and an address should be working, or be working after
an obvious transformation, or be obviously non-working.

Hrmm... whilst I do not subscribe to what I consider sometimes to be extremes, that made
sense.

Primarily because I was using one that I did not have explicit permission to use.

I have changed my e-mail address that should be workable after an obvious transformation.
Remove "the extra words" to e-mail me (assuming you still want to).
Sometimes one is pleased to have received mail even if one had not been
wanting it.

Ah, you weren't going to chide me for abusing the Date object?

Cool.
Certainly not; that would be an invalid date. As it happens, it's an
04-04, belatedly added. But I normally use it only when I have no other
means of communication.

Ah, at first I thought you were joking. I did not previously see that (don't know how I
missed it).

I actually remember viewing that in the newsgroup... or at least I thought so.

I did not mean to appear as if I ignored the thread either. I just did not find anymore
errors offhand, so thought it useless to reply in the thread again.
Fixed, thanks.

Not at all a problem.

-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am kidding. No I am not.
 
L

-Lost

Speaking of e-mails and whatnot... (see thread titled "textbox")

Randy, Doc J; do your newsgroup clients (or web interfaces) automatically put your
signatures at the bottom of a thread?

I wonder because I did a couple tests in alt.test.signature and noticed that anytime I
replied to a thread it put my signature on top of everything. Then I would have to
cut/paste it at the bottom... which sucks.

-Lost
 
E

Evertjan.

-Lost wrote on 22 apr 2007 in comp.lang.javascript:
Speaking of e-mails and whatnot... (see thread titled "textbox")

Randy, Doc J; do your newsgroup clients (or web interfaces)
automatically put your signatures at the bottom of a thread?

I wonder because I did a couple tests in alt.test.signature and
noticed that anytime I replied to a thread it put my signature on top
of everything. Then I would have to cut/paste it at the bottom...
which sucks.

Dear Lost,

You are not using either, but an email client [Outlook] that tries but
fails to implement what dedicated news readers had all along.

Why not make use such dedication?

btw, a signature should begin with -- followd by a new line character,
which anables good news readers to do automatic stripping.
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]>
-Lost wrote on 22 apr 2007 in comp.lang.javascript:

The one I use for mail and use does; the ones I have but don't use
should.

In that case, the first "it" was a bad choice.
btw, a signature should begin with -- followd by a new line character,
which anables good news readers to do automatic stripping.

No, a signature should be preceded with a line containing only "minus
minus space"; it's a separator, and is not counted in the standard four
lines.

A responding agent should put the cursor, but not any blank lines,
between the attribution and the initially-quoted material.
 
L

-Lost

Dr J R Stockton said:
In comp.lang.javascript message <[email protected]>


The one I use for mail and use does; the ones I have but don't use
should.

I took that as, I am not going to tell you about the ones I don't use, because they are
listed on one of my pages.

Needless to say I did not find a listing of mail or news clients aside from Turnpike that
is.

Which by the way... I just figured out how to reach that page. Previously the only way I
knew how to get to that page was by first finding the instance of "PFE" (or DiDa, or
MiniTrue) and clicking on one of those.

So, are there any that you might recommend?
In that case, the first "it" was a bad choice.

Oh yeah. Outlook Express has always bothered me. I have downloaded replacements before,
but never quite got into the swing of things in another client before needing/wanting to
peruse my mail and/or a newsgroup.

That is going to change as of, after I send this post. : )
No, a signature should be preceded with a line containing only "minus
minus space"; it's a separator, and is not counted in the standard four
lines.

A responding agent should put the cursor, but not any blank lines,
between the attribution and the initially-quoted material.

-Lost
 
L

-Lost

Randy Webb said:
-Lost said the following on 4/22/2007 12:09 AM:

Yes it does. And it also automatically removes properly delimited signatures (that begin
with dash dash space return).


Try a good newsreader instead of OE :)

Gotcha. I was scared off by Thunderbird at first (cannot remember why), but I am going
for it again with the newest version.

Here goes nothing!

I thought it rather funny actually that upon reading the FAQ on setting up an e-mail
account in your choice of client that they offer a tutorial based soley on Outlook
Express, as opposed to Turnpike.

That is rather shitty of Forte, at least in my opinion, to not only trash Free Agent, but
to not provide Free Agent at all anymore.

I struck Forte Agent from the list solely for that reason. A wise software developer told
me a long time ago that a company should never (within reason) abandon its users, paid or
not

The only good thing I remember about Agent anyway was its superior handling of multi-part
binary attachments (yEnc and all that jazz). Otherwise the interface (GUI) sucked.

Oh... and um... I lied above. *This* is the last post I will make with Outlook Express
(at least for a while).

Thanks for the links.

-Lost
 
L

-Lost

-Lost said:
Gotcha. I was scared off by Thunderbird at first (cannot remember why), but I am going
for it again with the newest version.


Here goes nothing!


I thought it rather funny actually that upon reading the FAQ on setting up an e-mail
account in your choice of client that they offer a tutorial based soley on Outlook
Express, as opposed to Turnpike.


That is rather shitty of Forte, at least in my opinion, to not only trash Free Agent, but
to not provide Free Agent at all anymore.

I struck Forte Agent from the list solely for that reason. A wise software developer told
me a long time ago that a company should never (within reason) abandon its users, paid or
not

The only good thing I remember about Agent anyway was its superior handling of multi-part
binary attachments (yEnc and all that jazz). Otherwise the interface (GUI) sucked.

Oh... and um... I lied above. *This* is the last post I will make with Outlook Express
(at least for a while).

Thanks for the links.

-Lost

OK, so far... I am loving Thunderbird. I had a few glitches that I had
to wrap my noggin around, but so far so good.

I love the fact wrap at 72 characters wide actually works!

Also, this weird view with colored lines on either side rocks.

I do not quite understand if it is a star or an important tag I
need/want. In Outlook Express I could simply click on any message
within a thread and mark it as a favorite and the entire thread would be
highlighted. So far, neither the star nor an important tag do that for me.

Thanks again for the suggestions!
 
L

-Lost

Randy said:
-Lost said the following on 4/23/2007 10:12 AM:



It "works" until you quote a broken OE post that isn't wrapped :)

Well, there is one less OE slave to contend with, so...
That is one thing about it that I have come to ignore :)

Oh no, it was especially cool when I read a message nested about ten deep!
The only thing you can do is "Label" a post and it won't label the
entire thread/color it. There is no way, that I have found, to label an
entire thread.

I could not find any particularly useful information on "Label(s)." Did
you mean Tags?
 
L

-Lost

Randy said:
-Lost said the following on 4/23/2007 6:00 PM:

In 1.5 (which is what I use), it is Label. In 2.0 (which I just
installed), it is in the Mark menu.

So basically, a star is all we have to mark items of noteworthy content
(or for whatever reason). That sucks.

I can honestly say in that respect that I like Outlook Express better.
I like 1.5 better than 2.0 though from what I have seen so far.

Bah, it figures. I even had a copy of 1.5.0.9, but opted to get the
newest version anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top