Forum Moderators: open

Message Too Old, No Replies

Alternative to onSubmit

XHTML 1.1 Strict Alternative

         

davemarks

8:55 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



Hi

I'm updating a site to be XHTML 1.1 Strict.

The sites an ecommerce store and so where several options are required i like to validate those before i submit the page - makes things quicker and less frustrating for the user.

I was hoping there was some way i could catch the form submit without having to use onSubmit="" in the form code as that fails validation.

Yeah yeah I know I could change DTD's but I'd like to see if theres a way around it first.

Nothing much coming up on Google or in these forums

Thanks

Dave

Lance

9:21 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



You're gonna hate this...

XHTML is case sensitive. Change onSubmit= to onsubmit= and you should be fine.

davemarks

9:38 pm on Nov 23, 2004 (gmt 0)

10+ Year Member



Gah I knew XHTML was case sensitive, but never even thought of that. The obvious always stares you blankly in the face hey...

You're right, I'm gonna slap myself!

Thanks very much!