Professional Web Applications Themes

Is try...catch supported in server-side Javascript? - ASP

I'm trying to modify an existing ASP application, which uses JavaScript as the server-side scripting language. Can you use the "try...catch" blocks in server-side JavaScript? Thanks! -- Kris Rudin, MS, MCP Aurora Consulting Group, Inc....

  1. #1

    Default Is try...catch supported in server-side Javascript?

    I'm trying to modify an existing ASP application, which uses JavaScript as
    the server-side scripting language.

    Can you use the "try...catch" blocks in server-side JavaScript?

    Thanks!
    --
    Kris Rudin, MS, MCP
    Aurora Consulting Group, Inc.


    Kris Rudin Guest

  2. #2

    Default Re: Is try...catch supported in server-side Javascript?

    I would presume so.

    Wouldn't be much point if it didn't cos it wouldn't be able to call itself
    JavaScript.

    Shouldn't be too hard to try on a simple page - just do a divide by zero
    error and catch that.

    Chris.

    "Kris Rudin" <krudinnospam.com> wrote in message
    news:Of9taAwUDHA.1280tk2msftngp13.phx.gbl...
    I'm trying to modify an existing ASP application, which uses JavaScript as
    the server-side scripting language.

    Can you use the "try...catch" blocks in server-side JavaScript?

    Thanks!
    --
    Kris Rudin, MS, MCP
    Aurora Consulting Group, Inc.



    Chris Barber Guest

  3. #3

    Default Re: Is try...catch supported in server-side Javascript?


    "Kris Rudin" <krudinnospam.com> wrote in message
    news:Of9taAwUDHA.1280tk2msftngp13.phx.gbl...
    > I'm trying to modify an existing ASP application, which uses JavaScript as
    > the server-side scripting language.
    >
    > Can you use the "try...catch" blocks in server-side JavaScript?
    Yes, you can.

    I use them round all my ADO calls to pick up things like duplicate key
    errors etc. Works just fine.

    gp



    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system ([url]http://www.grisoft.com[/url]).
    Version: 6.0.497 / Virus Database: 296 - Release Date: 04/07/03


    golfpoodle Guest

Similar Threads

  1. read server side file from clent side
    By sapna30 in forum Macromedia Flash Flashcom
    Replies: 3
    Last Post: February 12th, 11:49 PM
  2. Server Side Includes and Javascript
    By TSemmes in forum Macromedia Dynamic HTML
    Replies: 5
    Last Post: May 25th, 05:22 PM
  3. JavaScript and server side code
    By comprug in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: January 14th, 01:26 PM
  4. Controls with a client side onLoad function or seting a cursor server side
    By Geoff Davis in forum ASP.NET Building Controls
    Replies: 3
    Last Post: January 15th, 03:54 AM
  5. What is the SUPPORTED way of consuming web service from client side?
    By Ryan Jacops in forum ASP.NET Web Services
    Replies: 0
    Last Post: September 17th, 05:23 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139