Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Minnesota
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Boy I'm just full of questions tonight .. I know bad title ... hehe

    ok these are really newbie questions, but since its late and I'm tired I figured I'd ask (besides some one once told me the only dumb question is the one you never ask). The class I had never covered this stuff and either I totaly missed it in the books I've read or was ZZZZZing during that chapter



    1. Can you use both VBscripting and Javascripting in the same page?
    and of course how?
    (this is the only way I know to identifie language type)
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

    2. whats codepage do/for?

    3. A whats all this stuff mean (dreamweaver always puts it in, finaly got off of FrontPage)

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    Thanks
    J.C.
    To learn is a good thing and today I hope to learn something new!!

  • #2
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm pretty new myself so don't know much about this but i'll have a go....

    yes u can use javascript and vbscript on the same page. www.w3schools.com has a good asp tutorial which covers both

    I don't know what codepage does...

    The doctype thing is something to do with the w3c standard I think. The dtd stands for document type definition which defines the structure of an xml document. Again w3schools is good http://www.w3schools.com/dtd/default.asp

    Hope thats of some help

  • #3
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    Yes, you can use both languages in the same page. However, use of inline scripting is limited to one language. This is the language described in the @ declaration. so any script written in <% %> blocks will be in that language. In order to use two languages you will need to use the script blocks to tell the asp processor which language to use. <SCRIPT LANGUAGE="JScript" RUNAT="Server"> for more info see MSDN Article

    The codepage="1252" describes English US as the characterset to use. This is helpful with letters in the alphabet, numbers, and punctuation. You can also include the LCID in this line for formatting of dates and currency. If you are in the UK & you want to use the Euro and dd/mm/yyyy format for dates then you would have the following

    <%@ language="vbscript" codepage="1252" LCID="1146"%>.

    See this MSDN Article for complete list of codepage and LCID codes.

    and yes this line
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    is the doctype declaration. The transitional part says that your HTML may include the presentation attributes and elements that W3C expects to phase out.

    The various DTD's are

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    For STRICT compliance with HTML standards

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    For Most webpages

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
    For use in frames pages
    Last edited by miranda; 08-20-2004 at 11:01 PM.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please note that using multiple languages in a single file is considered a bad enough idea that MS dropped that ability from the .NET system.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #5
    New Coder
    Join Date
    Jan 2004
    Location
    Minnesota
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hey Roy .........

    Thanks all

    Another question Roy is ASP being fazed out by .net, and how soon do you think it will be before ASP is obsolete and no longer going to be supported.

    Heck I'm just starting to get some of this ASP stuff down, My cousine is telling me PHP is the way to go, now throw in .net stuff, still trying to get a good handle on CSS, don't forget gotta figure out MySQL, DHTML, XHTML, and what ever else there is ..............

    which way does a guy go. Maybe this should be a new post, but what is the best stuff for a Web developer to learn, what order should I tackle the stuff to learn

    Thanks
    J.C.
    To learn is a good thing today I hope to learn something new!!
    (nope forget that I'm taking a day off my brain hurts ... hehe)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •