Hello all,
I'm getting a strange error when I try to validate my page(s). The
error occurs when I use SELECT and INPUT tags inside of the FORM tag.
I am trying to use the XHTML 1.0 Strict standard. I am also using
ColdFusion, but I having been using regular FORM tags instead of the
proprietary CFFORM tags. If you can't put SELECT and INPUT tags inside
of the FORM tag, where are you supposed to put them???
Take a look and tell me what you think: http://validator.w3.org/check?uri=ht...ically%29&ss=1
Much thanks in advance. -Dave 16 2292
Dave wrote: I'm getting a strange error when I try to validate my page(s).
It's not really that strange. Have a look at the spec to see.
The error occurs when I use SELECT and INPUT tags inside of the FORM tag.
....as direct children. In strict, they must be wrapped in a block
level element, e.g.,
<form>
<div>
<input>
</div>
</form>
I am trying to use the XHTML 1.0 Strict standard.
As usual, this raises the question: Why XHTML/strict instead of the
more widely supported HTML/strict? http://validator.w3.org/check?uri=ht...ically%29&ss=1
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
Dave wrote: I'm getting a strange error when I try to validate my page(s). The error occurs when I use SELECT and INPUT tags inside of the FORM tag. I am trying to use the XHTML 1.0 Strict standard. I am also using ColdFusion, but I having been using regular FORM tags instead of the proprietary CFFORM tags. If you can't put SELECT and INPUT tags inside of the FORM tag, where are you supposed to put them???
Take a look and tell me what you think: http://validator.w3.org/check?uri=ht...ically%29&ss=1
It does look counter-intuitive but the validator correctly identifies
that the document does not validate against XHTML 1.0 Strict.
The content model for form elements only has block elements and
miscellaneous elements (script, noscript, ins and del).
<form ...>
<div>
....
</div>
</form>
validates and should work in your case.
--
Klaus Johannes Rusch Kl********@atme dia.net http://www.atmedia.net/KlausRusch/
On 11 Jun 2004 07:12:48 -0700, Dave <ba********@hot mail.com> wrote: Hello all,
I'm getting a strange error when I try to validate my page(s). The error occurs when I use SELECT and INPUT tags inside of the FORM tag. I am trying to use the XHTML 1.0 Strict standard. I am also using ColdFusion, but I having been using regular FORM tags instead of the proprietary CFFORM tags. If you can't put SELECT and INPUT tags inside of the FORM tag, where are you supposed to put them???
Take a look and tell me what you think: http://validator.w3.org/check?uri=ht...ically%29&ss=1
Much thanks in advance. -Dave
Wrap the select and input in div elements and you'll be fixed up. You can
get them to display side by side as in the original code with CSS.
Dave wrote: I'm getting a strange error when I try to validate my page(s). The error occurs when I use SELECT and INPUT tags inside of the FORM tag. I am trying to use the XHTML 1.0 Strict standard. I am also using ColdFusion, but I having been using regular FORM tags instead of the proprietary CFFORM tags. If you can't put SELECT and INPUT tags inside of the FORM tag, where are you supposed to put them???
Take a look and tell me what you think: http://validator.w3.org/check?uri=ht...ically%29&ss=1
Well if you want to code to a standard than it can't hurt to look at it,
the DTD of XHTML 1.0 strict can be found at http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
if you look at the definition of the form element it is
<!ELEMENT form %form.content;>
and form.content is defined as
<!ENTITY % form.content "(%block; | %misc;)*">
that is block or misc where block is
<!ENTITY % block
"p | %heading; | div | %lists; | %blocktext; | fieldset | table">
and misc
<!ENTITY % misc "noscript | %misc.inline;">
and misc.inline is
<!ENTITY % misc.inline "ins | del | script">
so indeed you don't find any form controls like select or input or
textarea allowed as direct content of a <form> element.
The reason is that XHTML 1.0 strict like HTML 4.01 strict wants you to
structure your document cleanly and put form controls in appropriate
containers like a <fieldset> element or a <p> element.
--
Martin Honnen http://JavaScript.FAQTs.com/
Brian wrote: Dave wrote:
I'm getting a strange error when I try to validate my page(s).
It's not really that strange. Have a look at the spec to see.
The error occurs when I use SELECT and INPUT tags inside of the FORM tag.
...as direct children. In strict, they must be wrapped in a block level element, e.g.,
<form> <div> <input> </div> </form>
I was positively suprised how easy it was to get a nice looking field
for a mailto form on my "testing site"
( http://w1.978.telia.com/~u97802964/kontakt.html), using the
<fieldset> tag. Hell of a job to make the same as a table!
BTW I don't have CGI on that server so I used a remote server.
--
/Arne
Dave Patton wrote: Arne <ar********@tel ia.com> wrote in news:Aq******** ************@ne wsc.telia.net:
I was positively suprised how easy it was to get a nice looking field for a mailto form on my "testing site" (http://w1.978.telia.com/~u97802964/kontakt.html), using the <fieldset> tag. Hell of a job to make the same as a table! BTW I don't have CGI on that server so I used a remote server.
"nice looking" doesn't describe this: http://members.shaw.ca/caninfosys/temp/kontakt.jpg
This has nothing whatsoever to do with the mentioned <fieldset> element,
however.
Matthias
Dave Patton wrote: Arne <ar********@tel ia.com> wrote in news:Aq******** ************@ne wsc.telia.net:
I was positively suprised how easy it was to get a nice looking field for a mailto form on my "testing site" (http://w1.978.telia.com/~u97802964/kontakt.html), using the <fieldset> tag. Hell of a job to make the same as a table! BTW I don't have CGI on that server so I used a remote server.
"nice looking" doesn't describe this: http://members.shaw.ca/caninfosys/temp/kontakt.jpg
Dave, read my post once again. I was pointing out the use of
<fieldset>, and not the page! But, by all means try it again if you like.
--
/Arne
Matthias Gutfeldt wrote: Dave Patton wrote:
Arne <ar********@tel ia.com> wrote in news:Aq****** **************@ newsc.telia.net : I was positively suprised how easy it was to get a nice looking field for a mailto form on my "testing site" (http://w1.978.telia.com/~u97802964/kontakt.html), using the <fieldset> tag. Hell of a job to make the same as a table! BTW I don't have CGI on that server so I used a remote server.
"nice looking" doesn't describe this: http://members.shaw.ca/caninfosys/temp/kontakt.jpg
This has nothing whatsoever to do with the mentioned <fieldset> element, however.
That's correct. But I guess some have trouble with the reading :-)
BTW: I have trouble to get that form with the fieldset to centering
horizontaly. The style "text-align:center" don't help, <center> do it
but don't validate. Any clue?
--
/Arne http://w1.978.telia.com/~u97802964/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nick Kew |
last post by:
There's a new beta of the W3C Markup Validation Service now live at
<URL:http://validator.w3.org:8001/>
Probably the most important change is verbose output, including attempts
to explain the validator errors. Other changes include improved
display of error messages, and a choice of parse modes.
Currently - but probably not for long - it includes an
"interesting" default setting!
Some of the changes have been the subject of much...
|
by: Torbjørn Pettersen |
last post by:
As you might have noticed I'm trying to clean up my web site's
HTML code. The way I do it is simply more or less redoing to
complete site, testing it on a web server I have set up on my
local network.
I have downloaded, and installed CSE HTML Validator Pro,
but I don't get the same results with that as I do with the online
validator on W3.org. And I can't upload files to W3.org either,
due to all the ASP code I use.
|
by: johnleemk |
last post by:
I download the source for W3C's validator from
http://validator.w3.org/source/ to validate pages on my own server. I
commented a block of code that checks for non-public hosts so the
validator would let me check http://localhost but then i ran into a
roadblock. The validator claimed my pages weren't valid. No problem.
However, it wouldn't say what the errors where. I tried this by
checking a known invalid remote site. Same result. Then I...
|
by: Richard Payne |
last post by:
Hi
This is probably a newbie question but I can't seem to find a clear answer
to the problem I have.
I have created a Custom Validator control on my webform that works fine, but
when I put the control in to the header section of my datalist it doesn't
work, the ServerValidate event doesn't fire. I presume that I haven't wirded
it up correctly.
|
by: Angelos Karantzalis |
last post by:
Hi guys,
I've a small problem with validators.
I'm building a single .aspx file that handles all my form posts. I need to
be using ASP.NET validators ( or subclasses thereof ), so what i do to
overcome the fact that i don't really know what sort of input controls I'm
working with is this:
1) I've got the form description in xml, so I know all the fields I'm
| |
by: Stephen Adam |
last post by:
Hi there people,
I'm creating my own set of self validating text boxes. They all
inherit from a base text box which simply contains a required field
validator, they then usuallly implement another validator to check
they contain number, currencies, dates or whatever.
The problem i'm having is with the DateTextBox, I have created my own
Date Validator which inherits from the BaseValidator class which the
DateTextBox uses. My problem is...
|
by: Skeptical |
last post by:
Hello,
I have a form and two buttons on it. Button1 submits the data to a database
and RequiredFieldValidator is used to make sure all the required fields are
filled up, the second button has a completely different task it basically
turns on another panel and displays some data. The problem is each time
Button2 is pressed required field validator wants the required fields to be
filled up.
The question is:
|
by: VK |
last post by:
Hi,
After the response on my request from W3C I'm still unclear about Tidy
vs. Validator discrepansies. That started with <IFRAME> issue, but
there is more as I know. Anyway, this very basic HTML page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN"
"http://www.w3.org/TR/html401/strict.dtd">
<html>
<head>
|
by: Jeff |
last post by:
hey
asp.net 2.0
I'm trying to create a web page where users can register to my web portal.
But I've run into a layout problem when using the data validator classes.
The problem is that the error message is not displayed on the same row as
the control it's validating. Check this link and you see an example of the
problem: http://home.online.no/~au-holme/pub/14506/problem.GIF the text
"Password and confirm password must match" is not...
|
by: Prisoner at War |
last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits'
end: I want to make bold several lines of text which have a pair of
<br /tags between them...seems like the <b></bdo not "carry over"
when there are <br /tags involved...???
I've tried using <p style="font-weight: bold;"></p>, I've tried
<blockquote></blockquote>...I just can't figure how I'm supposed to
get the <b></btags to work for all the lines! Surely there must be...
|
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,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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,...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |