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 14 of 14
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England, Hythe
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts

    what should i be writeing my asp in?

    should i be useing

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

    or

    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>


    whats the difference between them??

    thank you

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    England, Hythe
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    and if it was in vbscript mode would i be able to run javascript properally in side the page of cources if its in its <script> tags

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    VBScript, and Yes.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    England, Hythe
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you

  • #5
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    whammy, for what reason do people use that at the begining of their code? The only thing I use is Option Explicit, and that is only to make sure I have the variables defined. What does telling the server the language accomplish if your extention is .ASP?
    Would I be able to use ASP code inside of an html page if I added that line in?

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not sure, I just learned it that way...
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #7
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    So you write everything with that line at the top?
    I don't understand it, It doesn't allow me to do anything with ASP out side of the ASP extention.

    Not sure what it does, myself, but someone must know. Unless it's one of those meta tag type things. Not needed, but allowes a system to read it better. (Maybe faster)

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #9
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    It still doesn't allow me to use ASP on other extentions.
    So I feel the use of it, really doesn't have need for concern, do you?

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    I've done a lot of asp scripting in JScript, i always put the language directive in my pages, because if the server isn't controlled by yourself, you dont know what the server administrator will do with the default scripting language in IIS. If suddenly he sets it as JScript (for whatever reason) and the language directive is not there, your site doesnt work anymore.

    If you want to use the asp interpreter on other file extensions, you have to set this in IIS. One of the tabs in the properties dialog sets the actions for the different extensions.
    I am the luckiest man in the world

  • #11
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    One of those extension takes tell me, I need to upgrade...


    The web is ruuning an old version of the server extensions. To update the server extensions choose Upgrade Extensions from the Task menu for this server.









    (version unknown)
    And then when I click on the botton to get the new extensions, I get a popup saying:

    There is no web named "".

  • #12
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    now i get the idea we talk about different things. You seem to talk about frontpage server extensions , i was talking about using different file extensions than asp, when you want to handle filename.foo as an asp file for example
    I am the luckiest man in the world

  • #13
    Senior Coder Morgoth's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada Remaining Brain Cells: 6
    Posts
    1,402
    Thanks
    2
    Thanked 1 Time in 1 Post
    Well, either way, don't you need to adjust the server this the front page extensions area to be able to use ASP in .foo?

    I thought this was the area, and I can't access it. Am I wrong? What area is it that I need to get into to change that setting. Do you know for sure?

  • #14
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Originally posted by Morgoth
    Well, either way, don't you need to adjust the server this the front page extensions area to be able to use ASP in .foo?

    I thought this was the area, and I can't access it. Am I wrong? What area is it that I need to get into to change that setting. Do you know for sure?
    No, the frontpage extensions have nothing to do with the extensions parsed by ASP.

    You change that under 'Home Directory' on the site or VD properties. Then goto 'Configuration' under application settings. Then under 'Mappings' is where you can change those settings.


    And for the language directive, it is sorta like dimensioning variables only if you are coding the ASP page in the servers default ASP language. If you don't specify one, the default one is used. You should add it especially if you are distributing the ASP pages to people because they may for some reason have their default set diffrent.

    Now if you wish to change the default if you go to the window mentioned in the directions above and then go to the 'Options' tab there is a thing for the default ASP language.
    OracleGuy


  •  

    Posting Permissions

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