473,473 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how can i debug this ?

Hi all,

I get an script error warning from IE and am not sure how to debug. I've got
3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed properly
or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing problems
?

Many thanks

T
Nov 29 '06 #1
6 1675
On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:
Hi all,

I get an script error warning from IE and am not sure how to debug. I've
got 3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems
The script debugger in IE is referring to the 18th line of javascript code
downloaded into the browser, ignoring all other languages and html... it's
completely useless.

You can download the Windows script debugger and it will actually let you
find the offending line of code.
Nov 29 '06 #2
Ivan Marsh wrote on 29 nov 2006 in comp.lang.javascript:
On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:
>Hi all,

I get an script error warning from IE and am not sure how to debug.
I've got 3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and
i suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems

The script debugger in IE is referring to the 18th line of javascript
code downloaded into the browser, ignoring all other languages and
html... it's completely useless.
Not at all.

If it is a javascript error, see the viewsouced page.

You can download the Windows script debugger and it will actually let
you find the offending line of code.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 29 '06 #3
On Wed, 29 Nov 2006 22:06:23 +0000, Evertjan. wrote:
Ivan Marsh wrote on 29 nov 2006 in comp.lang.javascript:
>On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:
>>Hi all,

I get an script error warning from IE and am not sure how to debug.
I've got 3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems

The script debugger in IE is referring to the 18th line of javascript
code downloaded into the browser, ignoring all other languages and
html... it's completely useless.

Not at all.

If it is a javascript error, see the viewsouced page.
Which will show you line 18 of the source page, not the 18th line of
javascript.
Nov 29 '06 #4
I did try view source but line 18 was html

Ivan - you were spot on; i downloaded MS script debugger; and after i loaded
the page; it told me which of the external scripts and what line was causing
the offence.

thanks all

"Ivan Marsh" <an*****@you.nowwrote in message
news:pa****************************@you.now...
On Wed, 29 Nov 2006 22:06:23 +0000, Evertjan. wrote:
Ivan Marsh wrote on 29 nov 2006 in comp.lang.javascript:
On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:

Hi all,

I get an script error warning from IE and am not sure how to debug.
I've got 3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems

The script debugger in IE is referring to the 18th line of javascript
code downloaded into the browser, ignoring all other languages and
html... it's completely useless.
Not at all.

If it is a javascript error, see the viewsouced page.

Which will show you line 18 of the source page, not the 18th line of
javascript.

Nov 29 '06 #5
Ivan Marsh said the following on 11/29/2006 5:32 PM:
On Wed, 29 Nov 2006 22:06:23 +0000, Evertjan. wrote:
>Ivan Marsh wrote on 29 nov 2006 in comp.lang.javascript:
>>On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:

Hi all,

I get an script error warning from IE and am not sure how to debug.
I've got 3 external js file which i linked in my <head>

The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"

I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems
The script debugger in IE is referring to the 18th line of javascript
code downloaded into the browser, ignoring all other languages and
html... it's completely useless.
Not at all.

If it is a javascript error, see the viewsouced page.

Which will show you line 18 of the source page, not the 18th line of
javascript.
And IE - typically - counts from the DTD tag to the offending line of
code. It counts external file lines as if it were included in the page
source itself instead of as an external file. Take the contents of the
three .js files, put them in the code, save the file locally, test it,
and debug it.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Nov 30 '06 #6
Randy Webb a écrit :
Ivan Marsh said the following on 11/29/2006 5:32 PM:
>On Wed, 29 Nov 2006 22:06:23 +0000, Evertjan. wrote:
>>Ivan Marsh wrote on 29 nov 2006 in comp.lang.javascript:

On Wed, 29 Nov 2006 21:05:01 +0000, toffee wrote:

Hi all,
>
I get an script error warning from IE and am not sure how to debug.
I've got 3 external js file which i linked in my <head>
>
The error warning msg is:
"Problems with this webpage might prevent it from being displayed
properly or functioning properly.
Line: 18
Char: 16
Error: Syntax Error
Code: 0
URL: http://localhost/reps.php"
>
I looked at line 18 of my php page but there is no JS code there and i
suspect this a js issue.
Anyone know how i can find out where is this line 18 thats causing
problems
The script debugger in IE is referring to the 18th line of javascript
code downloaded into the browser, ignoring all other languages and
html... it's completely useless.
Not at all.

If it is a javascript error, see the viewsouced page.

Which will show you line 18 of the source page, not the 18th line of
javascript.

And IE - typically - counts from the DTD tag to the offending line of
code. It counts external file lines as if it were included in the page
source itself instead of as an external file. Take the contents of the
three .js files, put them in the code, save the file locally, test it,
and debug it.
Hi,

You can also try Companion.JS
(http://www.ieforge.com/CompanionJS/HomePage) which gives you the sam
info as the script debugger but is integrated into IE.

--
Regards / Cordialement

====================
Jean-Fabrice Rabaute
CORE SERVICES :: Software/Web development & Consulting services

http://www.debugbar.com : The most advanced WEB development tool for
Internet Explorer
http://www.core-services.fr - {Enjoy the future today}
Nov 30 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
7
by: Srinivasa Rao | last post by:
I have read in one article that when we compile the application in release mode, all the debug classes and properties will be automatically removed from the code. I tried to implement this thing by...
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
6
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to...
6
by: pauldepstein | last post by:
To help me debug, I am writing a lot of information into a stream which I call debug. However, because of the large amount of time taken to print this information, I only want this printed while...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
0
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being...
1
by: gfergo | last post by:
Good Morning, I seem to be having a problem. I thought I could display detailed debugging information (including file name and line number) on a page using two different methods: 1.)...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.