Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:18:41+00:00 2026-06-03T00:18:41+00:00

The line # isn’t so useful when your page is dynamically generated. What I’d

  • 0

The line # isn’t so useful when your page is dynamically generated. What I’d really like is the actual offending line.

Is there some way of doing this? Perhaps

document.getElementsByTagName('html')[0].innerHTML.Split('\n')[lineNumber-1];

// OR

document.body.innerHTML.Split('\n')[lineNumber-1];

However, when I tested it in Firefox 10, I got that the above were inaccurate unless the html and body tags were on the same line.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:18:43+00:00Added an answer on June 3, 2026 at 12:18 am

    For anyone who is curious, the answer for me was to make the number of lines above the first head or body element consistent across all pages.

    For me this magic # is three.

    One should note though that if the error occurred in a js file, then I don’t know how to get the actual line client-side. However, since the whole point of this was to log the line to the server (using ajax), I could simply read the line of the js file on the server. So it means that you have to ad an extra check on the url of the error to see that it is or is not a javascript file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've generated three line plots, but the data isn't really continuous, so I'd like
I recently came along this line of code: CustomData_em_free_block(&em->vdata, &eve->data); And I thought, isn't:
This line isn't working for me: header(location:landing.php?id=md5($_REQUEST['user'])); I need to pass the id variable.
Can anybody tell me why this line isn't working? window.open('entertainers/drilldown.php?state=' + varlocation + '?p=','performers_frame')
I'm running xcodebuild, but the command line isn't outputting source code warnings and errors.
is there a way to convert my recorded .caf files to .mp3 using the
Possible Duplicate: Android How to draw a smooth line following your finger I'm new
while i'm debugging my app there is some strange things. In some point the
I would like to drag an object in one line. I already know how
Is there a way to write my R errors to a file? I run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.