Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

XHTML Frameset - Form problem

This is a discussion on "XHTML Frameset - Form problem" within the Web Page Design section. This forum, and the thread "XHTML Frameset - Form problem are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 25th, 2008, 12:48
Junior Member
Join Date: Mar 2008
Location: Lisburn, Northern Ireland
Age: 28
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
XHTML Frameset - Form problem

I'm trying to upgrade a web app to be XHTML compliant. However, the default page is causing me a problem.

Code: Select all
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>AppName</title>
</head>	
<form name="frmTest" action="index.asp" target="OtherFrame" method="post" ></form>
  <frameset onload="document.frmTest.submit();">
	<frame name="OtherFrame" title="Main Container frame - Other Frames are contained within this Frame." scrolling="yes" marginwidth="0" marginheight="0" frameborder="0"  ></frame>
  </frameset>

</html>
That's the source from the web app. When I try to validate it whoever, I get the error

Line 9, Column 71: document type does not allow element "form" here.

and it points to the closing bracket on the open form tag.

I've tried putting body tags in but that just breaks the page. The page works fine as it is. What am I doing wrong?

Also, just to explain about the code. When the webapp loads, the default page (above) loads and in turn calls the Index.asp page so this really is only the starting page. It's worked fine all this time but the XHTML validation says it's wrong. What to do?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jun 25th, 2008, 15:31
Aso's Avatar
Aso Aso is online now
Moderator
Join Date: Oct 2007
Location: UK
Posts: 1,536
Blog Entries: 2
Thanks: 19
Thanked 81 Times in 76 Posts
Re: XHTML Frameset - Form problem

I'm not entirely sure this is the case, but I think you need it in the following format (below validates);
HTML: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>AppName</title>
</head>    
    <frameset>
        <!-- All content must lie within <frameset> -->
    </frameset>
</html>
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
XHTML compatible Form like Webforumz. JustinStudios PHP Forum 4 Feb 5th, 2008 23:37
CSS and Xhtml problem shitalg Web Page Design 2 Jan 21st, 2008 14:52
Form fails strict XHTML validation newoptical Web Page Design 10 Jun 7th, 2007 13:08
word resize problem in frameset jacobds Web Page Design 4 Feb 13th, 2007 23:21
XHTML causing CSS problem dartiss Web Page Design 4 Oct 26th, 2006 14:31


All times are GMT. The time now is 19:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8