The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

What replaced "onSubmit" for forms in XHTML 1.0? by shorty822006-03-30 18:26:40
  Some more form help requested. by shorty82 2006-11-19 12:55:59
Here I have a form to submit rape survivor stories for my university's sexual assualt awareness organization.

I have a javascript validator to make sure that the "Yes" radio button is selected but it isn't working. I can't figure out why.

Is there maybe some better way of doing a form validator than with javascript?

There is no form handler in place yet as I need to talk with ITS to see what is on the server to handle forms so you can submit the form all you want without filling someone's inbox.

The problem is probably something stupid.
[ Reply ]
    Which bit isn't working? by fudje2006-03-30 19:02:06
      All I know is that I click "Submit" by shorty822006-03-30 19:04:08
        As I suspected, by fudje2006-03-30 19:07:40
          Use getElementById. That's the DOM standard fn. (n/t) by bwkaz2006-03-30 19:08:47
            It doesn't work. (n/t) by shorty822006-03-30 19:11:20
          Neither work. (n/t) by shorty822006-03-30 19:10:40
            Case sensitivity again. by bwkaz2006-03-30 19:11:45
              Still doesn't work. (n/t) by shorty822006-03-30 19:12:56
              Also, you need id="whatever" attributes on your fo by bwkaz2006-03-30 19:13:43
                And *also*, you need to keep id attributes unique. by bwkaz2006-03-30 19:17:31
                  He needs the name for form purposes. by fudje2006-03-30 19:19:35
                    Oh, right. by bwkaz2006-03-30 19:21:58
                Still doesn't work and the W3C validator by shorty822006-03-30 19:19:05
                  You gave the same id to two different elements. (n/t) by bwkaz2006-03-30 19:19:36
                    Yeah, because both elements are part of by shorty822006-03-30 19:22:56
                      I just removed "id" from the elements by shorty822006-03-30 19:24:08
                      But in {X,}HTML, two different tags CAN'T have the by bwkaz2006-03-30 19:26:46
                        It's standard by fudje2006-03-30 19:33:54
                          Ah, I only looked at level 1 HTML. by bwkaz2006-03-30 19:40:09
                            Whoops, I meant "this sentence in the HTMLCollecti by bwkaz2006-03-30 19:41:25
                              names always return a NodeList, by fudje2006-03-30 19:49:25
                                There is? Hmm. by bwkaz2006-03-30 19:58:08
            Try this: by fudje2006-03-30 19:16:24
              Not quite right, sorry. by fudje2006-03-30 19:18:22
                That got it, thanks. (n/t) by shorty822006-03-30 19:20:48
    Thanks, everybody. by shorty822006-03-30 19:45:26

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)