473,770 Members | 6,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validation Errors:

CJM
I'm adding some extra features to an intranet-based ASP application...( IE6
clients)

As part of the process, I thought I would give the html a mid-life upgrade,
ie. remove much of the tag-soup, replace with CSS and validate.
I haven't got much time to spend perfecting it, but I thought with a little
bit of effort I could transform the app into something approximating a
professional application.

The app use 3 frame layout: header, options (menu) and content frames. [No,
I'm not introducing full CSS-P at this stage]

Tackling the Options page first, I've hit a few validation errors:

1) Line 16, column 195: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

This occurs for each <input> tag in the form.

2) Line 13, column 90: there is no attribute "TARGET"

This is refering to the <form> tag. How do I specifiy the target frame
without this?

3) Line 22, column 9: end tag for "FORM" which is not finished

This refers to the </form> tag - I assume this is grumbling about an empty
form (since all other tags within fail validation)

Below is the source - sorry it's from a DB driven intranet site, so it's
difficult to post a live link rather than code.

Cheers

Chris

>>>>>>>>>>> >>>>>>>>>>>>> >

Source:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>SND: Options</title>
<link rel="stylesheet " type="text/css" href="Eminox.cs s">
<script type="text/javascript" src="scripts/Submit.js" defer></script>
<script type="text/javascript" src="scripts/validation.js" defer></script>
</head>
<body>
<div id="options2">
<form method="post" id="frmOptions " name="frmOption s" class="options"
action="" target="content ">
<input class="btn" onclick="Submit SN(frmOptions,' start.asp');"
type="button" value="Home" title="Back to Homepage" id=Home" name="Home">
<input type="text" id="SerialNo" name="SerialNo" size="9"
onkeypress="frm Options.action= 'ViewSerial.asp ?id='+frmOption s.SerialNo.valu e
;" datatype="alpha ">
<input size="" type="submit" id="Submit1" value="View" name="ViewSN"
onclick='return validate(this.f orm, "ViewSerial.asp ?id=" +
frmOptions.Seri alNo.value);' class="btn" title="View Serial No">
<input onclick='return validate(this.f orm, "CheckSerial.as p?id=" +
frmOptions.Seri alNo.value);' class="btn" type="submit" id="Submit2"
value="Add/Edit" name="Add/Edit" title="Add or Edit Serial No">
<input onclick='return validate(this.f orm, "XferSerial.asp ?id=" +
frmOptions.Seri alNo.value);' class="btn" type="submit" id="Transfer"
value="Transfer " name="Transfer" title="Transfer Serial No">
<input onclick='return validate(this.f orm, "InvoiceSerial. asp?id=" +
frmOptions.Seri alNo.value);' class="btn" type="submit" id="Invoice"
value="Invoice" name="Invoice" title="Invoice Serial No">
<input onclick='return validate(this.f orm, "ChangePwd.asp" );'
class="btn_sml" type="submit" id="ChPwd" value="Change Pwd" name="ChPwd"
title="Change Password">
<input onclick='return validate(this.f orm, "Logout.asp ");'
class="btn_sml" type="submit" value="Logout" name="Logout" title="Logout"
id="Submit3">
</form>
</div>
</body>
</html>
Jul 20 '05 #1
3 3041
CJM wrote:
1) Line 16, column 195: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

This occurs for each <input> tag in the form. Just what it says. INPUT is an inline element. FORM can only contain
block-level content. Add a div around it and you are fine.
2) Line 13, column 90: there is no attribute "TARGET"

This is refering to the <form> tag. How do I specifiy the target frame
without this? Using another DOCTYPE (transitional)
3) Line 22, column 9: end tag for "FORM" which is not finished

This refers to the </form> tag - I assume this is grumbling about an empty
form (since all other tags within fail validation)

--
Anne van Kesteren
http://www.annevankesteren.nl/
Jul 20 '05 #2
"CJM" <cj*****@yahoo. co.uk> wrote:

You're using a strict doctype. This causes all the following errors.
Tackling the Options page first, I've hit a few validation errors:

1) Line 16, column 195: document type does not allow element "INPUT" here;
missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

This occurs for each <input> tag in the form.
In strict <input> is not allowed as a direct child of <form>.
Use a container like <fieldset> or <div>.

Or switch down to Transitional.
2) Line 13, column 90: there is no attribute "TARGET"

This is refering to the <form> tag. How do I specifiy the target frame
without this?
You don't. The target attribute, like everything to do with frames,
specific windows, etc. has no place in Strict.

You can either drop the frames, use JavaScript instead, or drop down
to Transitional.
3) Line 22, column 9: end tag for "FORM" which is not finished

This refers to the </form> tag - I assume this is grumbling about an empty
form (since all other tags within fail validation)


I think that's right.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 20 '05 #3
CJM
Thanks.

Transitional it is then...
"Steve Pugh" <st***@pugh.net > wrote in message
news:ji******** *************** *********@4ax.c om...
"CJM" <cj*****@yahoo. co.uk> wrote:

You're using a strict doctype. This causes all the following errors.
Tackling the Options page first, I've hit a few validation errors:

1) Line 16, column 195: document type does not allow element "INPUT" here;missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV",
"ADDRESS" start-tag

This occurs for each <input> tag in the form.


In strict <input> is not allowed as a direct child of <form>.
Use a container like <fieldset> or <div>.

Or switch down to Transitional.
2) Line 13, column 90: there is no attribute "TARGET"

This is refering to the <form> tag. How do I specifiy the target frame
without this?


You don't. The target attribute, like everything to do with frames,
specific windows, etc. has no place in Strict.

You can either drop the frames, use JavaScript instead, or drop down
to Transitional.
3) Line 22, column 9: end tag for "FORM" which is not finished

This refers to the </form> tag - I assume this is grumbling about an emptyform (since all other tags within fail validation)


I think that's right.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1756
by: MJ | last post by:
I am attempting to write a ServletFilter in Java/J2EE that checks if the incoming data is valid according to a schema. If errors occur, I want to return the error list and not proceed down the chain. If no errors, the next in the servlet chain should receive the original XML. The data in the input stream has already been consumed by the XML parser. What is the easiest way to validate the XML and keep the source xml available for the...
6
4851
by: MickG | last post by:
Hi, I am trying to validate these values, this seems to work fine for the phone number and name but I am trying to get the program to fail to submit and set the focus on the date when 2006 is selected and submitted. Thanks in advance for any help.
67
5351
by: Scott Meyers | last post by:
I have a web site that, due to maintenance by several people, some of whom are fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point where I'm pretty sure it's suffering from bit rot. Though the pages seem to display okay under IE and FF, I really think it's time for an under-the-hood cleaning. I recently received a copy of Molly Holzschlag's "Spring Into HTML and CSS," and in the first chapter, she makes a big...
2
5188
by: Sudip Chakraborty | last post by:
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack trace below. at System.Data.DataSet.FailedEnableConstraints() at System.Data.DataSet.EnableConstraints() at System.Data.DataSet.set_EnforceConstraints(Boolean value)
2
257
by: TCORDON | last post by:
Is there a way to make the form validation highlight the fields where the errors occur? (change the backcolor of the textboxes)? And second, perform validation without postback and run some Javascript? TIA
12
2271
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the
9
4180
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be honest I usually hire someone to do it for me, grab predone scripts and kind of hack out the parts that I need, or just do very minimal validation (e.g. this is numeric, this is alpha-numeric, etc.)
7
3620
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
3
2274
by: hardieca | last post by:
Hi, I've created an n-tier app where validation rules reside in the business layer. When a webform is saved, a business object examines its state, and if some property is invalid, throws a custom exception (ValidationException) The exception bubbles up to the UI where it gets trapped: Private Sub Page_Error(ByVal sender As Object, ByVal e As
8
2738
by: Bryan | last post by:
I want my business objects to be able to do this: class Person(base): def __init__(self): self.name = None @base.validator def validate_name(self): if not self.name: return
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10005
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.