Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8686 > unrolled thread

Diagnosing JS error that is not reported

Started byDrKen <javajedi2@yahoo.com>
First post2011-11-28 12:07 -0800
Last post2011-11-29 22:31 -0200
Articles 9 — 7 participants

Back to article view | Back to comp.lang.javascript


Contents

  Diagnosing JS error that is not reported DrKen <javajedi2@yahoo.com> - 2011-11-28 12:07 -0800
    Re: Diagnosing JS error that is not reported Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-28 21:37 +0000
      Re: Diagnosing JS error that is not reported John G Harris <john@nospam.demon.co.uk> - 2011-11-29 15:45 +0000
        Re: Diagnosing JS error that is not reported Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-29 18:07 +0000
          Re: Diagnosing JS error that is not reported John G Harris <john@nospam.demon.co.uk> - 2011-11-30 16:49 +0000
    Re: Diagnosing JS error that is not reported Gene Wirchenko <genew@ocis.net> - 2011-11-28 14:07 -0800
    Re: Diagnosing JS error that is not reported Dr J R Stockton <reply1148@merlyn.demon.co.uk> - 2011-11-29 19:38 +0000
      Re: Diagnosing JS error that is not reported Tim Streater <timstreater@greenbee.net> - 2011-11-29 23:57 +0000
    Re: Diagnosing JS error that is not reported "J.R." <groups_jr-1@yahoo.com.br> - 2011-11-29 22:31 -0200

#8686 — Diagnosing JS error that is not reported

FromDrKen <javajedi2@yahoo.com>
Date2011-11-28 12:07 -0800
SubjectDiagnosing JS error that is not reported
Message-ID<aaf4dcf8-e665-4b88-807d-f6e6d0292fae@v5g2000yqn.googlegroups.com>
  I am having trouble finding the error in my .js file.  I have a web
page that I am using outside of its web application in order to test a
small change to a JavaScript file.  I am getting an error while the
page is rendering.  It stops part way through rendering. My experience
has been that this is a JavaScript error.  However, when I try to open
the .html file in Firefox, the Error Console seems to list no errors,
warnings, or messages for the page.  I opened Firebug on the page and
then opened the .html file and the Firebug part disappeared.  I tried
using jslint but that gave me all sorts of grief over code that has
worked for three years and stopped aorund line 30 instead of giving
errors for the entire file . Is there a good tool to find JavaScript
coding errors?  Thanks.

Ken

[toc] | [next] | [standalone]


#8687

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-28 21:37 +0000
Message-ID<4ed3ff0d$0$29444$a8266bb1@newsreader.readnews.com>
In reply to#8686
On Mon, 28 Nov 2011 12:07:33 -0800, DrKen wrote:

> I am having trouble figuring out the correct way to post to multiple
> newsgroups on usenet.

1) Get a proper news client
2) help -> crosspost

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#8703

FromJohn G Harris <john@nospam.demon.co.uk>
Date2011-11-29 15:45 +0000
Message-ID<ezThhpEH4P1OFwaK@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD>
In reply to#8687
On Mon, 28 Nov 2011 at 21:37:17, in comp.lang.javascript, Denis McMahon
wrote:
>On Mon, 28 Nov 2011 12:07:33 -0800, DrKen wrote:
>
>> I am having trouble figuring out the correct way to post to multiple
>> newsgroups on usenet.
>
>1) Get a proper news client
>2) help -> crosspost
>
>Rgds
>
>Denis McMahon

Did two news articles really end up with the same message ID?

  John
-- 
John Harris

[toc] | [prev] | [next] | [standalone]


#8705

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2011-11-29 18:07 +0000
Message-ID<4ed51f5c$0$29448$a8266bb1@newsreader.readnews.com>
In reply to#8703
On Tue, 29 Nov 2011 15:45:11 +0000, John G Harris wrote:

> On Mon, 28 Nov 2011 at 21:37:17, in comp.lang.javascript, Denis McMahon
> wrote:
>>On Mon, 28 Nov 2011 12:07:33 -0800, DrKen wrote:
>>
>>> I am having trouble figuring out the correct way to post to multiple
>>> newsgroups on usenet.
>>
>>1) Get a proper news client
>>2) help -> crosspost

> Did two news articles really end up with the same message ID?

I read substantially similar (but not properly cross-posted) articles by 
the same OP in two newsgroups.

I therefore diagnosed his problem as an inability to cross-post properly 
to usenet, restated his question to match his observed problem, and 
answered it. ;)

Rgds

Denis McMahon

[toc] | [prev] | [next] | [standalone]


#8726

FromJohn G Harris <john@nospam.demon.co.uk>
Date2011-11-30 16:49 +0000
Message-ID<ReRKfPGq6l1OFw5w@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD>
In reply to#8705
On Tue, 29 Nov 2011 at 18:07:24, in comp.lang.javascript, Denis McMahon
wrote:
>On Tue, 29 Nov 2011 15:45:11 +0000, John G Harris wrote:
>
>> On Mon, 28 Nov 2011 at 21:37:17, in comp.lang.javascript, Denis McMahon
>> wrote:
>>>On Mon, 28 Nov 2011 12:07:33 -0800, DrKen wrote:
>>>
>>>> I am having trouble figuring out the correct way to post to multiple
>>>> newsgroups on usenet.
>>>
>>>1) Get a proper news client
>>>2) help -> crosspost
>
>> Did two news articles really end up with the same message ID?
>
>I read substantially similar (but not properly cross-posted) articles by
>the same OP in two newsgroups.
>
>I therefore diagnosed his problem as an inability to cross-post properly
>to usenet, restated his question to match his observed problem, and
>answered it. ;)

You made it look as though he wrote the words you "quoted". That is a
very wrong thing to do. You'll see it's the same as forging his name
when you think about it.

  John
-- 
John Harris

[toc] | [prev] | [next] | [standalone]


#8689

FromGene Wirchenko <genew@ocis.net>
Date2011-11-28 14:07 -0800
Message-ID<kf18d7dtq8ka1094d127rb9l6mrp1137oi@4ax.com>
In reply to#8686
On Mon, 28 Nov 2011 12:07:33 -0800 (PST), DrKen <javajedi2@yahoo.com>
wrote:

>  I am having trouble finding the error in my .js file.  I have a web
>page that I am using outside of its web application in order to test a
>small change to a JavaScript file.  I am getting an error while the
>page is rendering.  It stops part way through rendering. My experience
>has been that this is a JavaScript error.  However, when I try to open
>the .html file in Firefox, the Error Console seems to list no errors,
>warnings, or messages for the page.  I opened Firebug on the page and
>then opened the .html file and the Firebug part disappeared.  I tried
>using jslint but that gave me all sorts of grief over code that has
>worked for three years and stopped aorund line 30 instead of giving
>errors for the entire file . Is there a good tool to find JavaScript
>coding errors?  Thanks.

     I cut out sections of code, save, test, restore the code until I
find a relevant change.

Sincerely,

Gene Wirchenko

[toc] | [prev] | [next] | [standalone]


#8716

FromDr J R Stockton <reply1148@merlyn.demon.co.uk>
Date2011-11-29 19:38 +0000
Message-ID<4T1RtHI4ST1OFwdn@invalid.uk.co.demon.merlyn.invalid>
In reply to#8686
In comp.lang.javascript message <aaf4dcf8-e665-4b88-807d-f6e6d0292fae@v5
g2000yqn.googlegroups.com>, Mon, 28 Nov 2011 12:07:33, DrKen
<javajedi2@yahoo.com> posted:

>  I am having trouble finding the error in my .js file.  I have a web
>page that I am using outside of its web application in order to test a
>small change to a JavaScript file.  I am getting an error while the
>page is rendering.  It stops part way through rendering. My experience
>has been that this is a JavaScript error.  However, when I try to open
>the .html file in Firefox, the Error Console seems to list no errors,
>warnings, or messages for the page.  I opened Firebug on the page and
>then opened the .html file and the Firebug part disappeared.  I tried
>using jslint but that gave me all sorts of grief over code that has
>worked for three years and stopped aorund line 30 instead of giving
>errors for the entire file . Is there a good tool to find JavaScript
>coding errors?  Thanks.

Then there is obviously at least one actual error in your HTML or
JavaScript files.  More detail cannot be given without seeing those
files.

One possible explanation is that you have a bad loop statement trying to
execute an infinite (approximately) number of times, and that your
browser has not got an enabled loop detector.

Another is that your browser's error detector is nor detecting, perhaps
being set to show only messages,  Verify that by introducing a known
error.

A simple test is to introduce an alert(number) call at a place that you
know execution reaches (to prove you can do it), and others where it
might or might not be reaching.  But be careful not to do that in high-
count inner loops.

Another test is to disable JavaScript and see whether the whole of the
HTML renders as then expected.  If it does not, you have at least one
non-JavaScript error.

You should, of course, have validated the HTML & CSS at www.w3.org, and
have said so.

-- 
 (c) John Stockton, nr London UK  ?@merlyn.demon.co.uk  IE8 FF8 Op11 Sf5 Cr15
   news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
   <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

[toc] | [prev] | [next] | [standalone]


#8717

FromTim Streater <timstreater@greenbee.net>
Date2011-11-29 23:57 +0000
Message-ID<timstreater-6C5F4A.23574629112011@news.individual.net>
In reply to#8716
In article <4T1RtHI4ST1OFwdn@invalid.uk.co.demon.merlyn.invalid>,
 Dr J R Stockton <reply1148@merlyn.demon.co.uk> wrote:

> In comp.lang.javascript message <aaf4dcf8-e665-4b88-807d-f6e6d0292fae@v5
> g2000yqn.googlegroups.com>, Mon, 28 Nov 2011 12:07:33, DrKen
> <javajedi2@yahoo.com> posted:
> 
> >  I am having trouble finding the error in my .js file.  I have a web
> >page that I am using outside of its web application in order to test a
> >small change to a JavaScript file.  I am getting an error while the
> >page is rendering.  It stops part way through rendering. My experience
> >has been that this is a JavaScript error.  However, when I try to open
> >the .html file in Firefox, the Error Console seems to list no errors,
> >warnings, or messages for the page.  I opened Firebug on the page and
> >then opened the .html file and the Firebug part disappeared.  I tried
> >using jslint but that gave me all sorts of grief over code that has
> >worked for three years and stopped aorund line 30 instead of giving
> >errors for the entire file . Is there a good tool to find JavaScript
> >coding errors?  Thanks.

Try using more browsers. Safari has a nice Develop menu, you can look in:

  Develop -> Show error console

to see if there was a javascript error.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

[toc] | [prev] | [next] | [standalone]


#8718

From"J.R." <groups_jr-1@yahoo.com.br>
Date2011-11-29 22:31 -0200
Message-ID<jb3thq$1kj$1@speranza.aioe.org>
In reply to#8686
On 28/11/2011 18:07, DrKen wrote:
>    I am having trouble finding the error in my .js file.  I have a web
> page that I am using outside of its web application in order to test a
> small change to a JavaScript file.  I am getting an error while the
> page is rendering.  It stops part way through rendering. My experience
> has been that this is a JavaScript error.  However, when I try to open
> the .html file in Firefox, the Error Console seems to list no errors,
> warnings, or messages for the page.  I opened Firebug on the page and
> then opened the .html file and the Firebug part disappeared.  I tried
> using jslint but that gave me all sorts of grief over code that has
> worked for three years and stopped aorund line 30 instead of giving
> errors for the entire file . Is there a good tool to find JavaScript
> coding errors?  Thanks.
>
> Ken

Debugging JavaScript:
<http://siliconforks.com/doc/debugging-javascript/>

HTH.

-- 
Joao Rodrigues (J.R.)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web