473,414 Members | 1,563 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,414 software developers and data experts.

which doctype to use?? and one other

this is my first page so i'm terribly lost on which doctype to use, i'm
hoping there's a basic type that doesn't require hours of research
i had been using,
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- -->
<HTML>
but that stopped working and now can't seem to find one that works
it also started invoking the post - action, even when the validation is
returning false?? that is really weird

with different doc types it then asks for a coding reference?
its a pretty basic page, with a medium size form
http://job1data.com/phsvolunteer.htm
and this code seems to work fine in the page but the validator has it pegged
as an error, i was hoping to use jscript to avoid all the coding for dates
it seemed an easy way to build a larger select list
</SELECT>
year* <SELECT size=1 name="dobYYYY">
<script type="text/javascript">
d = new Date();
var year = d.getFullYear();
year = parseFloat(year);
for (i = year; i > (year - 80) ; i--) {
document.write("<OPTION> " + i);
}
</script>
</SELECT>
Jul 20 '05 #1
2 1516
thanks for the help, i will have to try it but am guessing if i execute the
javascript, runat=server,
the actual html will be generated at the server, so the 'completed' page
will be delivered to the
client browser and thanks for the short cut tip on the date
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:A3**************@merlyn.demon.co.uk...
JRS: In article <ZK*******************@rwcrnsc52.ops.asp.att.net >, seen
in news:comp.lang.javascript, bbxrider <bb*******@comcast.net> posted at
Sat, 9 Aug 2003 01:02:49 :-
d = new Date();
var year = d.getFullYear();
year = parseFloat(year);
parseFloat() serves no useful purpose there.

You could use
year = new Date().getFullYear()
or
year = (D=new Date()).getFullYear()

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE

4 © <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript <URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics,

links.
Jul 20 '05 #2
thanks for the help, i will have to try it but am guessing if i execute the
javascript, runat=server,
the actual html will be generated at the server, so the 'completed' page
will be delivered to the
client browser and thanks for the short cut tip on the date
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:A3**************@merlyn.demon.co.uk...
JRS: In article <ZK*******************@rwcrnsc52.ops.asp.att.net >, seen
in news:comp.lang.javascript, bbxrider <bb*******@comcast.net> posted at
Sat, 9 Aug 2003 01:02:49 :-
d = new Date();
var year = d.getFullYear();
year = parseFloat(year);
parseFloat() serves no useful purpose there.

You could use
year = new Date().getFullYear()
or
year = (D=new Date()).getFullYear()

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE

4 © <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript <URL:http://www.merlyn.demon.co.uk/js-index.htm> JS maths, dates, sources. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics,

links.
Jul 20 '05 #3

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

Similar topics

3
by: bill turner | last post by:
I've searched the web and news groups. It seems others have had this problem. Unfortunately, the solution seems to be exactly what I've coded. If anybody can point out what is wrong, I'd truly...
7
by: David Ross | last post by:
I manually code my HTML without using any page generating software. I need to know how to specify the DOCTYPE at the beginning of my HTML files. No, I don't want a "canned" DOCTYPE statement. ...
25
by: Viken Karaguesian | last post by:
Hello all, I'm somewhat of a newbie to webscripting. I've made a couple of websites in the past with WYSIWYG software, but now I'm much more interested in manual scripting. I have some...
6
by: Viken Karaguesian | last post by:
Hello everyone, I'm just wondering what you all use to write and edit your HTML and organize your websites. I currently use Microsoft Frontpage 2003. Hold on! Before you all jump on me for...
4
by: shypen42 | last post by:
Hi, I'd like to know how to serve web pages as "cleanly" as possible, maybe validating them if it's possible. How should I do to both respect standards *and* have it work under the various IE...
6
by: reynard | last post by:
I have a page that uses this doctype <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> but when I change to this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
2
by: PapaRandy | last post by:
Hello, I am trying to validate the following .py webpage as HTML (through W3C). I put: ----------------------------------------------------------------------------- print "Content-type:...
24
by: TC | last post by:
Hi folks I want to enhance my website to distinguish "external" hyperlinks from "internal" ones. With that aim, I've written the following two small files for testing purposes: ...
13
by: romuse | last post by:
Hello everyone, I hope that my post is in the proper location and in all cases your comments feedback will be appreciated When I create an html page lanch it (contains flash object) it works fine...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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,...
0
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.