473,594 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I get this to validate as 4.01 strict


Can anyone help me to get this third party code to validate as 4.01

<form action="http://**********.org. uk/draw/draw_data.php" method="post"
target="PageNam e" onsubmit="windo w.open
('about:blank', 'PageName','dir ectories=0,heig ht=600,width=81 5,location=
0,menubar=0,res izable=1,scroll bars=1,status=1 ,toolbar=0')">
<img src="http://**********.org. uk/draw/images/lottery.gif"
width="110" height="20" alt="********* Lottery Nomination form"
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nomina te us
in the
monthly ********** UK Draw </font>
<input type="hidden" name="charity" value="YOUR CHARITY NAME HERE">
<input type="submit" name="submit" value="Nominate Now">

it validates as transitional but gives errors for the target="PageNam e"
and align="middle" and Font tag

The key thing is to generate a pre-sized popup without the un-necessary
navigation things + feed the charity name via a hidden field, I.e.

<input type="hidden" name="charity" value="Animals in Distress">

into their system at

<form action="http://**********.org. uk/draw/draw_data.php" method="post"
etc etc
I can remove the font tag to the style sheet but just can't think what to
do about the other problems.

Jul 20 '05 #1
1 1834
On Tue, 30 Sep 2003 11:29:00 +0100,
Grytpype-Thynne <ge************ *************@h otmail.com> wrote:
Can anyone help me to get this third party code to validate as 4.01


it validates as transitional but gives errors for the target="PageNam e"
and align="middle" and Font tag
You can't. They're not a part of HTML 4.01 strict, so you cannot do
that. You have two choices, stop trying to do that, or redeclare the
page as something that does allow it (e.g. HTML 4.01 loose).

It's like asking how do I have a red car but with blue paint. The two
are mutually exclusive. You can't do it.
The key thing is to generate a pre-sized popup without the un-necessary
navigation things + feed the charity name via a hidden field, I.e.

Think carefully about whether a pop-up is a good idea. I hate them,
many others do, and many browsers now reject pop-ups as they're a common

My "from" address is totally fake. (Hint: If I wanted e-mails from
complete strangers, I'd have put a real one, there.) Reply to usenet
postings in the same place as you read the message you're replying to.
Jul 20 '05 #2

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

Similar topics

by: NNTP | last post by:
#!/usr/bin/perl use Validate::Net; if ( Validate::Net->ip($ARGV)) { print "valid"; exit 0; } print "invalid"; #--done
by: Haines Brown | last post by:
I have a document with a set of internal links such as: <a name="Z1"></a>... <a name="Z2"></a>... The W3C validator objects to the first instance of the name attribute: There is no attribute "FOO" for this element (in this HTML version). The element is defined not to have this attribute. These anchors are not contained in anything. For example, the Z1
by: Holly | last post by:
I'm trying to validate my code and I can't figure out what kind of doctype I have. The validator can't tell me anything because it can't move beyond the doctype declaration. http://www.wavian.com/clients/pugwash/ Is there anyway to tell what kind of doctype this is? I tried inserting a few different types (please excuse me if this is the stupid way to do it, I am learning...) but am unsuccessful.
by: Acharya J. Ganesh | last post by:
|| Shree Ganesha || Dear Friends; Please check the website chpindia.com and please comment wether it is done alright this time at least. Last time I got lot of feedback for ashapurafoods.com saying that the design was not made using strict dtd. This time I have taken care of using STRICT DTD. Please Comment, I am a very much new commer with respect to you all.
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
by: Michel Posseth [MCP] | last post by:
I have a problem with the date time picker validate event wich i believe is a bug How to reproduce : throw on a form a date time picker control and a textbox control select the validating event of the control and add this code
by: john.swilting | last post by:
I am not good in Javascript I begin I do not understand why my function does not go I post my code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>contact.html</title> <meta name="generator" content="Bluefish 1.0.7"> <meta name="author" content="swilting">
by: Mike Hofer | last post by:
I've been maintaining some source code, and I've noticed some radical inconsistency in the code, particularly in the way that parameters are validated. I've noticed that this seems to have been pretty much the case throughout my career. For instance, consider the following block: If siteId <= 0 Then Throw New ArgumentOutOfRangeException("siteId") End If
by: Summercool | last post by:
this HTML seems perfectly good but won't validate... any idea? http://www.0011.com/test_size2.html
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...
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: 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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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

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.