|
-
Jun 12th, 2004, 10:13 PM
#1
Hey Javascript
I love javascript.
Forget the fact that it's a case sensitive language, causing me to lose time in trivial things like readonly and readOnly, but here's something new for me!
Even though I've named my form as
<form name="form1">
I still have to refer to it as
document.Form1....
Wonderful isn't it? Try your best to stay case-sensitive to avoid the errors, only to be told that you're a monkey-eared bugger who can't do anything right if "right" came and kicked you in the testicular region.
-
Jun 13th, 2004, 11:11 AM
#2
Your fault, really. What you should do is give the form an id:
<form id="form1">
and use the DOM to access it:
document.getElementById('form1');
Though I really don't get why your method should require change of case, I can't remember ever having heard that before.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 17th, 2004, 09:23 AM
#3
Frenzied Member
Originally posted by CornedBee
Your fault, really. What you should do is give the form an id:
<form id="form1">
and use the DOM to access it:
document.getElementById('form1');
Though I really don't get why your method should require change of case, I can't remember ever having heard that before.
Yeah, always use the ID tag when working with JS, it also helps you not to get confused with what you actually used...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|