Line numbers in JS

Results 1 to 2 of 2

Thread: Line numbers in JS

  1. #1
    Seth B Guest

    Default Line numbers in JS

    Is there anyway to get the line number you are on in ASP using JS. <BR><BR>For example, if you have a response write statement on line 50, is there any way to output that you are on line 50 w/o hardcoding it?<BR><BR>TIA<BR>Seth

  2. #2
    Join Date
    Dec 1969

    Default No, but...

    ...what you *can* do (to find what line an error message is referring to) is:<BR><BR>(1) Bring up the ASP page, ignoring any errors it gets.<BR><BR>(2) Click on the "View" menu of the browser<BR><BR>(3) Click on the "Source" menu item in that menu<BR><BR>(4) Take the file that pops up in Notebook and save it with a temp name.<BR><BR>(5) Open that same temp name in some editor that understands line numbers. The line numbers in that editor *will* correspond to client-side JS error messages with line numbers.<BR><BR><BR><BR><BR><BR>

Posting Permissions

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