View Poll Results: Does anyone write ASP in JavaScript?

Voters
6. You may not vote on this poll
  • Yes

    1 16.67%
  • No

    3 50.00%
  • Sometimes

    2 33.33%
Results 1 to 10 of 10

Thread: Does anyone write ASP in JavaScript?

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Just curious, i wrote an ASP calendar in javascript and my friend didn't think it could be done.
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    You can't
    This is called JSP - pinched from ASP, similar, but using Java / Javascript.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Actually Alex, you are wrong. ASP can be done in VBScript or Javascript.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    As I understand it, you can create an ASP with either VBScript or JScript. Note, JScript is not the same as JavaScript, although they are both moving toward the W3C DOM standard and the ECMAScript standard.

    You can create JSPs and you can create JavaScript that runs "serverside", but neither of theses are ASPs.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Yeah, just change the <%@language%> to Javascript instead of VBscript.
    Alcohol & calculus don't mix.
    Never drink & derive.

  6. #6
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Well... either your web server can serve JSPs or you aren't noticing that JScript's and JavaScript's syntax are very very similar. You can leave out the @language. IIS will figure out that it is an ASP and will figure out that it is VBScript or JScript (should). But officially, and technically, your ASP is in JScript, not JavaScript.

    It is a very small technicality since their syntax are so similar.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  7. #7

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Are there any big differences?
    Alcohol & calculus don't mix.
    Never drink & derive.

  8. #8
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    No big differences, they are striving for the same standard.

    Does JavaScript support the MS FSO Model? I'm sure there are others, but that one jumps out at me.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  9. #9
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I remember seeing a web page comparison that said ASP using JScript performed faster than ASP using VBScript. Some time I'd like to write the same page in both languages and time it.
    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.

  10. #10
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Josh, that is very true. VB and VBScript are large and slow. JScript runs faster than VBScript and VC++ runs faster than VB.

    'Course, you have to make a project big enough to notice the difference.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

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