| What replaced "onSubmit" for forms in XHTML 1.0? |
by shorty82 |
2006-03-30 18:26:40 |
| I'm putting a form together on a XHTML 1.0 page and the validator tells me that "there is no attribute "onSubmit"." |
|
[ Reply ] |
|
onsubmit (n/t) | by ToLazyToThink | 2006-03-30 18:29:54 |
|
That is so simple I should have caught it myself, | by shorty82 | 2006-03-30 18:34:50 |
|
There's that darned case sensitivity. | by kahuana | 2006-03-30 18:37:30 |
|
Philosophical point: case sensitivity in programmi | by whybird | 2006-03-30 18:43:49 |
|
Ones that create "variables" on-the-fly, sure. | by kahuana | 2006-03-30 18:52:08 |
|
True, it is not *as* bad in more rigid languages, | by whybird | 2006-03-30 19:03:00 |
|
Eww. := bad. BAD. | by fudje | 2006-03-30 19:46:55 |
|
Eiffel? Is that another Wirth language? | by kahuana | 2006-03-30 20:16:26 |
|
Nope. Bertrand Meyer. | by fudje | 2006-03-30 20:27:06 |
|
Did Meyer attend ETH in Zurich? | by kahuana | 2006-03-30 20:34:41 |
|
Obfusication, d'uh. | by fudje | 2006-03-30 18:57:15 |
|
See my other post | by whybird | 2006-11-19 12:55:59 |
|
Or you could use a full event listener, instead... | by fudje | 2006-03-30 18:55:19 |
|
You can work around it in IE though. | by bwkaz | 2006-03-30 19:07:30 |
|
Of course they won't. | by fudje | 2006-03-30 19:08:55 |
|
Some more form help requested. | by shorty82 | 2006-11-19 12:55:59 |
|
Which bit isn't working? | by fudje | 2006-03-30 19:02:06 |
|
All I know is that I click "Submit" | by shorty82 | 2006-03-30 19:04:08 |
|
As I suspected, | by fudje | 2006-03-30 19:07:40 |
|
Use getElementById. That's the DOM standard fn. (n/t) | by bwkaz | 2006-03-30 19:08:47 |
|
It doesn't work. (n/t) | by shorty82 | 2006-03-30 19:11:20 |
|
Neither work. (n/t) | by shorty82 | 2006-03-30 19:10:40 |
|
Case sensitivity again. | by bwkaz | 2006-03-30 19:11:45 |
|
Still doesn't work. (n/t) | by shorty82 | 2006-03-30 19:12:56 |
|
Also, you need id="whatever" attributes on your fo | by bwkaz | 2006-03-30 19:13:43 |
|
And *also*, you need to keep id attributes unique. | by bwkaz | 2006-03-30 19:17:31 |
|
He needs the name for form purposes. | by fudje | 2006-03-30 19:19:35 |
|
Oh, right. | by bwkaz | 2006-03-30 19:21:58 |
|
Still doesn't work and the W3C validator | by shorty82 | 2006-03-30 19:19:05 |
|
You gave the same id to two different elements. (n/t) | by bwkaz | 2006-03-30 19:19:36 |
|
Yeah, because both elements are part of | by shorty82 | 2006-03-30 19:22:56 |
|
I just removed "id" from the elements | by shorty82 | 2006-03-30 19:24:08 |
|
But in {X,}HTML, two different tags CAN'T have the | by bwkaz | 2006-03-30 19:26:46 |
|
It's standard | by fudje | 2006-03-30 19:33:54 |
|
Ah, I only looked at level 1 HTML. | by bwkaz | 2006-03-30 19:40:09 |
|
Whoops, I meant "this sentence in the HTMLCollecti | by bwkaz | 2006-03-30 19:41:25 |
|
names always return a NodeList, | by fudje | 2006-03-30 19:49:25 |
|
There is? Hmm. | by bwkaz | 2006-03-30 19:58:08 |
|
Try this: | by fudje | 2006-03-30 19:16:24 |
|
Not quite right, sorry. | by fudje | 2006-03-30 19:18:22 |
|
That got it, thanks. (n/t) | by shorty82 | 2006-03-30 19:20:48 |
|
Thanks, everybody. | by shorty82 | 2006-03-30 19:45:26 |