473,549 Members | 2,573 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html validation fails

http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 27 '06 #1
4 999
"Morten Snedker" <morten_spammen ot_ATdbconsult. dkschrieb:
It fails due to tags not being closed properly.
At the first glance, some 'input' tags look
suspicious. They are closed with '/>', which is
AFAIK an XML-only feature.

You could store the HTML output from within
the browser and reduce the source text until
the validation error disappears.

Regards,
Joachim

Nov 27 '06 #2
HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.

Ciaran O'Donnell

"Morten Snedker" wrote:
http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 27 '06 #3
On Mon, 27 Nov 2006 08:23:01 -0800, Ciaran O''Donnell
<Ci************ @discussions.mi crosoft.comwrot e:

According to W3C it actually does seem like it is the missing "option"
that causes validation to fail.

I'm not aware how to add a blank option as you suggest (or maybe I
just don't know what you mean) - can you help me the last step?

Regards /Snedker
>HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.

Ciaran O'Donnell

"Morten Snedker" wrote:
>http://test.planprojekt.dk/vaerk.aspx
(http://validator.w3.org/check?uri=ht...k%2Fvaerk.aspx)
fails validation.

It fails due to tags not being closed properly. However, the failing
code is produced dynamically and is regarding a couple of listboxes.

Is there any way for me to get around this failing code?

Regards /Snedker
Nov 28 '06 #4
On Mon, 27 Nov 2006 08:23:01 -0800, Ciaran O''Donnell
<Ci************ @discussions.mi crosoft.comwrot e:

Figured out your suggestion and that did the trick! Thanks to both of
you for your efforts! :-)

Regards /Snedker
>HTML is now XHTML and is XML, therefore it has a schema which says the Select
tage can not be empty. Yet your Listbox has no items and therefore doesnt
have any options in the select tag. Try adding a blank option to the listbox.
Nov 28 '06 #5

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

Similar topics

5
2851
by: Marcel | last post by:
Hello all, I am working on a generic (php) script to produce (X)HTML Forms through XML and XSL based on field-definitions stored in a database. The basic way i did HTML-forms in PHP was like this: http://212.204.203.71/test/simpleform/simpleform.php source: http://212.204.203.71/test/syntax/simpleform.php
4
2619
by: bnp | last post by:
Hi All, I am quite new the JavaScript. Basically I am a C++ programmer, but now I am working on JavaScript since last 5 days. I have a problem regarding the form validation. I have created a script that validates the form fields. the validation procedure is called ONCLICK event of the submit button. Follwowing is the structure of the...
0
1967
by: Brian Conway | last post by:
I am having some validation and insertion problems. I am using a date picker that takes the selected date and puts it to ("dd-MMM-yyyy") format, as this was the only format that Oracle would accept on an insert, however, when it does a comparision validation it is failing. I have StartDate = comparing to an invisible textbox that contains...
3
3033
by: Gary Varga | last post by:
In the file WebUIValidation.js, when a postback that doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit function. Page_ValidationSummaries has a length of 1 but there are no array entries. This is the line that fails: summary.style.display = "none";
2
2909
by: Chad | last post by:
I have a textbox control, txtMeasurement, that I want to allow only numeric decimal input. I thought to use a client side validation control to ensure that the data entered is of type "Double". 'Measurement Validation (Range Validator) Dim MeasurementRangeValidator As New RangeValidator 'validate that the measure is numeric ...
2
6732
by: John Smith | last post by:
Hello, I have a VB.NET application with a Windows form that have several textboxes fields where I have dates entered. I would like to do a date validation check after the the field is updated, so I' using the leave event. Right now I am creating a 'leave' sub for each of the fields. However, I'd like to simplify that and just call the name...
3
5773
by: Doug (dtism) | last post by:
Hello **newbie alert** <-- that's me btw, but you might have guessed that by my topic title. I have an html page that submits a name and email address by a form to a page called preview.php I'd like to do some basic validation on the credentials subbitted via the form, and if they pass then send the credentials via email and display the...
1
1829
by: MayoM | last post by:
My form has some simple validation in the Before Update event. If the validation fails the code ends with DoCmd.CancelEvent The form also has an Update command button. This simply runs Me.Refresh When the button is clicked, Me.Refresh triggers the Before Update code. If the validation fails and DoCmd.CancelEvent is executed, I get...
8
2724
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
7527
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...
0
7726
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7967
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7485
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...
0
7819
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...
0
3505
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...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
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
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.