Results 1 to 5 of 5

Thread: Scripts?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Scripts?

    What language, other than JavaScript, can you use in the <script> tags of an html page, if any?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    The langauge attribute is actually depreciated in favour of the type="mime" attribute, but if this is what you mean I believe you can use...

    type="text/javascript"
    type="text/vbscript"
    type="text/jscript"

    the bottom 2 only in MSIE.

    You can also use type="text/javascriptxx" where xx is javascript version.

    I use <script langauge="javascript" type="text/javascript"> for compatibility in browsers.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  3. #3
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Yeah and I seem to remember if a browser doesn't understand type or you've left out language then it should assume it's JavaScript.

  4. #4
    scoutt
    Guest
    yes you could also make it like this

    <script language="php" src="http://www.yourhost.com/myscript.php"></script>

    but it will only work on *nix systems as it won't on a windows system.

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You can theorically use anything - the browser should determine what in supports

    BTW, IE can also use "PerlScript" after its installed - and how to make your own ActiveX Scripting Langauge is documented at MSDN - it'll work with IE, ASP, and WSH.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width