473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How can I get this to validate as 4.01 strict

Hi,

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

<form action="http://**********.org.uk/draw/draw_data.php" method="post"
target="PageName" onsubmit="window.open
('about:blank','PageName','directories=0,height=60 0,width=815,location=
0,menubar=0,resizable=1,scrollbars=1,status=1,tool bar=0')">
<img src="http://**********.org.uk/draw/images/lottery.gif"
width="110" height="20" alt="********* Lottery Nomination form"
align="middle">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Nominate 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">
</form>

it validates as transitional but gives errors for the target="PageName"
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.

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

...[snip]...

it validates as transitional but gives errors for the target="PageName"
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
pain.

--
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

5
by: NNTP | last post by:
#!/usr/bin/perl use Validate::Net; if ( Validate::Net->ip($ARGV)) { print "valid"; exit 0; } print "invalid"; #--done
22
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...
39
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. ...
4
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...
6
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...
4
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...
1
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">...
28
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...
1
by: Summercool | last post by:
this HTML seems perfectly good but won't validate... any idea? http://www.0011.com/test_size2.html
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.