which doctype to use?? and one other

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bbxrider

    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.dt d">
    <!-- -->
    <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



    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>


  • bbxrider

    #2
    Re: which doctype to use?? and one other

    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" <spam@merlyn.de mon.co.uk> wrote in message
    news:A3BMBeFYnP N$Ew$Q@merlyn.d emon.co.uk...[color=blue]
    > JRS: In article <ZKXYa.67820$Vt 6.23201@rwcrnsc 52.ops.asp.att. net>, seen
    > in news:comp.lang. javascript, bbxrider <bbxrider1@comc ast.net> posted at
    > Sat, 9 Aug 2003 01:02:49 :-
    >[color=green]
    > >d = new Date();
    > >var year = d.getFullYear() ;
    > >year = parseFloat(year );[/color]
    >
    > parseFloat() serves no useful purpose there.
    >
    > You could use
    > year = new Date().getFullY ear()
    > or
    > year = (D=new Date()).getFull Year()
    >
    > --
    > © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE[/color]
    4 ©[color=blue]
    > <URL:http://jibbering.com/faq/> Jim Ley's FAQ for[/color]
    news:comp.lang. javascript[color=blue]
    > <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates,[/color]
    sources.[color=blue]
    > <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics,[/color]
    links.


    Comment

    • bbxrider

      #3
      Re: which doctype to use?? and one other

      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" <spam@merlyn.de mon.co.uk> wrote in message
      news:A3BMBeFYnP N$Ew$Q@merlyn.d emon.co.uk...[color=blue]
      > JRS: In article <ZKXYa.67820$Vt 6.23201@rwcrnsc 52.ops.asp.att. net>, seen
      > in news:comp.lang. javascript, bbxrider <bbxrider1@comc ast.net> posted at
      > Sat, 9 Aug 2003 01:02:49 :-
      >[color=green]
      > >d = new Date();
      > >var year = d.getFullYear() ;
      > >year = parseFloat(year );[/color]
      >
      > parseFloat() serves no useful purpose there.
      >
      > You could use
      > year = new Date().getFullY ear()
      > or
      > year = (D=new Date()).getFull Year()
      >
      > --
      > © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE[/color]
      4 ©[color=blue]
      > <URL:http://jibbering.com/faq/> Jim Ley's FAQ for[/color]
      news:comp.lang. javascript[color=blue]
      > <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates,[/color]
      sources.[color=blue]
      > <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics,[/color]
      links.


      Comment

      Working...