473,395 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error in page

Hello,

I wrote a javascript,
and when I open the html by the browser,
I get the message : Error in page.

It is about tousand lines, and I cannot figure out in a simple way,
where is the line, that cause the error ?

I see on other computers, a message like " ... do you wish to debug".

Is there any way just knowing where is the line that cause the error ?

Is there anywhere in the internet a free validator for checking java script
code ?

Thanks :)
Jul 20 '05 #1
8 4815
In article <3f********@news.012.net.il>, a@b.com enlightened us with...
I wrote a javascript,
and when I open the html by the browser,
I get the message : Error in page.

It is about tousand lines, and I cannot figure out in a simple way,
where is the line, that cause the error ?

I see on other computers, a message like " ... do you wish to debug".

Is there any way just knowing where is the line that cause the error ?

Is there anywhere in the internet a free validator for checking java script
code ?

IE is terrible for debugging, even when the settings are checked for it.
Bring up the page in Netscape 6+ or Mozilla, then type
javascript:
in the location bar and hit enter for the javascript console.
The error should be more apparent.

If you post a link, we could look at the page.
--
~kaeli~
Every calendar's days are numbered.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #2
Thanks,

Isn't any simple way not using Mozila or Netscape ?
(Most of the users that enter into my site, use IE 5.5 or greater,
but I want to use the explorer which is much like IE 5.5 - what is it ?
Mozila or NetScape ?
Besides, I am for sure show in the past that in IE 5.5 and greater, with
an error on it -
the browser shout that I have error in my page, and which line has the
error, I don't remember how,
- That's all I want, since my program is hardly debugged).

The site is in Hebrew, so I don't know if you'll understand some,
If you really curious it is : www.moca.co.il,
but there are more :
I want to debug not just java-scripts, but asmx (VBNET), aspx, htmls, and
every kind of protocol that I use to build my site
(and beleive me, there are a lot of protocols).

Thanks :)

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <3f********@news.012.net.il>, a@b.com enlightened us with...
I wrote a javascript,
and when I open the html by the browser,
I get the message : Error in page.

It is about tousand lines, and I cannot figure out in a simple way,
where is the line, that cause the error ?

I see on other computers, a message like " ... do you wish to debug".

Is there any way just knowing where is the line that cause the error ?

Is there anywhere in the internet a free validator for checking java script code ?

IE is terrible for debugging, even when the settings are checked for it.
Bring up the page in Netscape 6+ or Mozilla, then type
javascript:
in the location bar and hit enter for the javascript console.
The error should be more apparent.

If you post a link, we could look at the page.
--
~kaeli~
Every calendar's days are numbered.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #3
In article <3f******@news.012.net.il>, a@b.com enlightened us with...
Thanks,

Isn't any simple way not using Mozila or Netscape ?
Not really, no.
There was a thread some time ago about javascript debuggers. The
consensus, IIRC, was that Venkman was the way to go, and that's Mozilla
open source (and netscape).
Dreamweaver has a JS debugger, too, I think.
(Most of the users that enter into my site, use IE 5.5 or greater,
but I want to use the explorer which is much like IE 5.5 - what is it ?
Mozilla and Netscape are very similar. They are nothing like IE, since
IE supports proprietary code that they don't.
Netscape 6+ is based on Mozilla code.
Mozila or NetScape ?
Besides, I am for sure show in the past that in IE 5.5 and greater, with
an error on it -
the browser shout that I have error in my page, and which line has the
error, I don't remember how,
The line number is rarely accurate.
It's in the settings, advanced tab, I think. I have IE6 and some things
changed, so I'm not positive. There's checkboxes for error messages and
whether to ignore errors and such.

The site is in Hebrew, so I don't know if you'll understand some,
If you really curious it is : www.moca.co.il,
Netscape immediately showed that you have a syntax error - a semi-colon
after an if block.
function checkExecOK(ignoreCount)
{
var res;
res = false;
if (gen_execWSCount == 0)
res = true;
else
if (gen_innerCall)
{
gen_innerCall = false;
res = true;
}; <--- that doesn't belong there
else
res = false;
if ((res == true) && (!(ignoreCount)))
gen_execWSCount = gen_execWSCount + 1;
return res;
} but there are more :
I want to debug not just java-scripts, but asmx (VBNET), aspx, htmls, and


html is not debugged. It is validated. There are some nice validator
sites around.
aspx and such is debugged with the tool you developed it with. Interdev
has a nice debugger.

HTH
--
~kaeli~
A plateau is a high form of flattery.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
I have installed Mozilla (1.5) and Netscape (7.1), and ...
1) I don't get any error in my page - can you tell me how you got the error,
please.
Is there any validation of the current page ?
2) Several things don't work (I don't see some my pictures on the main page,
CSS for opacity:alpha .... - It seems that netscape ignore this
behaviour.
Web Service behaviour (htc) - doesn't seems to work.

Thanks :)

"kaeli" <ti******@NOSPAM.comcast.net> wrote in message
news:MP***********************@nntp.lucent.com...
In article <3f******@news.012.net.il>, a@b.com enlightened us with...
Thanks,

Isn't any simple way not using Mozila or Netscape ?
Not really, no.
There was a thread some time ago about javascript debuggers. The
consensus, IIRC, was that Venkman was the way to go, and that's Mozilla
open source (and netscape).
Dreamweaver has a JS debugger, too, I think.
(Most of the users that enter into my site, use IE 5.5 or greater,
but I want to use the explorer which is much like IE 5.5 - what is it ?


Mozilla and Netscape are very similar. They are nothing like IE, since
IE supports proprietary code that they don't.
Netscape 6+ is based on Mozilla code.
Mozila or NetScape ?
Besides, I am for sure show in the past that in IE 5.5 and greater, with an error on it -
the browser shout that I have error in my page, and which line has the
error, I don't remember how,


The line number is rarely accurate.
It's in the settings, advanced tab, I think. I have IE6 and some things
changed, so I'm not positive. There's checkboxes for error messages and
whether to ignore errors and such.

The site is in Hebrew, so I don't know if you'll understand some,
If you really curious it is : www.moca.co.il,


Netscape immediately showed that you have a syntax error - a semi-colon
after an if block.
function checkExecOK(ignoreCount)
{
var res;
res = false;
if (gen_execWSCount == 0)
res = true;
else
if (gen_innerCall)
{
gen_innerCall = false;
res = true;
}; <--- that doesn't belong there
else
res = false;
if ((res == true) && (!(ignoreCount)))
gen_execWSCount = gen_execWSCount + 1;
return res;
}
but there are more :
I want to debug not just java-scripts, but asmx (VBNET), aspx, htmls,

and
html is not debugged. It is validated. There are some nice validator
sites around.
aspx and such is debugged with the tool you developed it with. Interdev
has a nice debugger.

HTH
--
~kaeli~
A plateau is a high form of flattery.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #5
"Mr. x" <a@b.com> writes:
I have installed Mozilla (1.5) and Netscape (7.1), and ...
1) I don't get any error in my page - can you tell me how you got the error,
please.
Is there any validation of the current page ?
The errors are reported in the javascript console. Open it through the
menu, or enter "javascript:" in the location bar.
2) Several things don't work (I don't see some my pictures on the main page,
CSS for opacity:alpha .... - It seems that netscape ignore this
behaviour.
"opacity" is not part of a CSS specification yet. Therefore, the version
Mozilla implements is prefixed with -moz- as the CSS specifications request.
Example:
-moz-opacity:0.5;
The Microsoft proprietary "filter" rule is not supported by anything
except IE, and it is how IE makes transparency.
Web Service behaviour (htc) - doesn't seems to work.


Sounds like a Microsoft invention. I have never heard about it.
(checking: yes it is).
You should not expect anything but Microsoft's browser to support
their own inventions.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6
Thanks,
Several things.
Since I new on mozilla/netscape :
1) about the javascript console - I didn't find where (netscape/mozilla) ?
2) For CSS - opacity - thanks for your reply.
3) Is there any way to figure out what browser is running, and do different
things for IE and for Mozilla/Netscape, so my page work on any browser ?
4) About htc - I use it for web-service generally (htc behaviour file for
web-services is a common file - services.htc) , and for some behaviour of
components (like common styles and events for the same behaviour
components).
Web-Service will work, even the server side is java-based, because it
doesn't metter what is on the server side - it is WDSL/SOAP
(I did some check on server side : Tomcat, and it works at the same
manner I do the checking for microsoft server),
so I think there must be a way to get web-service work in
netscape/mozilla.

Thanks :)
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:d6**********@hotpop.com...
"Mr. x" <a@b.com> writes:
I have installed Mozilla (1.5) and Netscape (7.1), and ...
1) I don't get any error in my page - can you tell me how you got the error, please.
Is there any validation of the current page ?
The errors are reported in the javascript console. Open it through the
menu, or enter "javascript:" in the location bar.
2) Several things don't work (I don't see some my pictures on the main page, CSS for opacity:alpha .... - It seems that netscape ignore this
behaviour.


"opacity" is not part of a CSS specification yet. Therefore, the version
Mozilla implements is prefixed with -moz- as the CSS specifications

request. Example:
-moz-opacity:0.5;
The Microsoft proprietary "filter" rule is not supported by anything
except IE, and it is how IE makes transparency.
Web Service behaviour (htc) - doesn't seems to work.
Sounds like a Microsoft invention. I have never heard about it.
(checking: yes it is).
You should not expect anything but Microsoft's browser to support
their own inventions.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors:

<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html> 'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #7
"Mr. x" <a@b.com> writes:
Since I new on mozilla/netscape :
1) about the javascript console - I didn't find where (netscape/mozilla) ?
It is Tools > JavaScript Console in my Mozilla FIrebird 0.7.
You can also enter "javascript:" in the address bar.
3) Is there any way to figure out what browser is running, and do different
things for IE and for Mozilla/Netscape, so my page work on any browser ?
Not with absolute accuracy. And don't think that doing different
things for IE and Mozilla means that your page works in any
browser. There are a lot of different browsers out there (e.g., I use
Opera). The days where you could say "both browsers" and people would
know what you meant, is over.

In fact, it is pages that detect browsers by name and that therefore
fails for unknown browsers (possibly because the author refuses access
to unknown browsers - a deadly sin in web design), that has causes
browser producers to add the ability to mimic a different browser. That
is part of the reason why browser detection isn't possible.

The recommended method for making pages work on most browsers, is:
- Code the page to follow the official standards and recommendations.
- Add special code only for the few browsers that you *know* doesn't
support the standards. IE has a feature that makes adding IE-specific
fixes easier: <!--[if IE]>conditional comments for IE<![end if]-->
- When coding Javascript, make sure the page makes sense without it.
Not everybody has Javascript available, or even enabled.
- When coding Javascript, do object detection on the features you want
to use. Don't use browser detection and attempt to infer the existence
of other features from that.
4) About htc - I use it for web-service generally (htc behaviour file for
web-services is a common file - services.htc) , and for some behaviour of
components (like common styles and events for the same behaviour
components).
Web-Service will work, even the server side is java-based, because it
doesn't metter what is on the server side - it is WDSL/SOAP
(I did some check on server side : Tomcat, and it works at the same
manner I do the checking for microsoft server),
so I think there must be a way to get web-service work in
netscape/mozilla.


There is. But HTC is *Microsoft's* way of doing Web Services, and
Mozilla uses another. Mozilla can access a Web Service directly using
SOAP 1.0, without using an HTC file.

You should not expect a Microsoft proprietary solution to be
implemented in other browsers. Mozilla prefers to use only official
standards.

What I found was: <URL:http://200.210.8.13/~davilin/artigo_ingles.htm>
Mozilla SOAP API:
<URL:http://www.oreillynet.com/pub/a/javascript/synd/2002/08/30/mozillasoapapi.html>

(Apart from that, I don't know any more about web services than the average
geek).
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #8
In article <3c**********@hotpop.com>, lr*@hotpop.com enlightened us
with...
"Mr. x" <a@b.com> writes:
Since I new on mozilla/netscape :
1) about the javascript console - I didn't find where (netscape/mozilla) ?
It is Tools > JavaScript Console in my Mozilla FIrebird 0.7.
You can also enter "javascript:" in the address bar.


Without the quotes.
Just in case you were typing the quotes and that's why it didn't come
up.

(Apart from that, I don't know any more about web services than the average
geek).
/L


Web services can be packaged nicely for any browser using .NET.
Don't ask me how, though - I know about it, I don't use it. .NET
requires IIS, which we don't have.

--
~kaeli~
Support your local medical examiner: die strangely!
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #9

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

Similar topics

7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
9
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
25
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
6
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
2
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access...
7
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
25
by: Blasting Cap | last post by:
I keep getting errors that pop up when I am trying to convert an application from dotnet framework 1.1 to framework 2.0. The old project was saved in sourcesafe from Visual Studio 2003, and I have...
1
by: sean_walsh | last post by:
Hi From classic ASP, I had a custom error handling situation that was quite simple. Errors were all redirected to Error.asp. This page would check 2 settings, EmailErrorMessage and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.