Nested form's

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Nested form's

Post by alex.barylski »

Are they legal according to XHTML trans/strict?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Test it?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I'm 99% sure they are not. They don't work either.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

The DTD for 1.0 says "<!-- forms shouldn't be nested -->" on all 3 (strict, trans and frameset)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Man, I wish I had a forum full of people that were willing to search for me, too. :wink:
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

Last time I tried nested forms the browser spat the dummy. I can't see any real need for them that couldn't be solved in other ways, if its completely necessary to submit something from inside another form, maybe use...

Code: Select all

onclick="document.formname.submit();"
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Cool thanks guys.

Everah I did actually do a search on Google quickly and couldn't find anything, so I threw it up here...thinking, if someone already knew the answer, then it's second to punch out an answer...I wasn't lookin for someone to search for me 8)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

It's all good. I was just being a jerk.
Post Reply