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 :) 8 4832
In article <3f********@new s.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
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******@NOSPA M.comcast.net> wrote in message
news:MP******** *************** *@nntp.lucent.c om... In article <3f********@new s.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
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(ign oreCount)
{
var res;
res = false;
if (gen_execWSCoun t == 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
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******@NOSPA M.comcast.net> wrote in message
news:MP******** *************** @nntp.lucent.co m... 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(ign oreCount) { var res; res = false; if (gen_execWSCoun t == 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
"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/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
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/rasterTriangleD OM.html> 'Faith without judgement merely degrades the spirit divine.'
"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.h tm>
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/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
In article <3c**********@h otpop.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 error page displayed by IE (you know, the 'cannot find server or
dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!
|
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 different parts of my site to throw a dummy exception
and I always get to the page that says change my web.config to the statement
above.
|
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 error page.
All six steps in the article work just fine. Then at the end of the
article, there is a little comment about redirecting errors to an aspx page
(instead of an html page):
|
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 being uploaded. I'm also using
the HtmlInputFile control to do the uploading. My problem is that when the
user's file size exceeds 512k, the page immediately redirects to the "The
page cannot be displayed" error page which is very confusing. ...
|
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 of the web app
3)restarting IIS
4)recreating the virtual dir in IIS
5)playing with any and all settings I could find for the web app in IIS,
including changing permissions
6)recopying the machineconfig file from my asp v1.4... onto my local server
| |
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>
|
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 session variables from Application_Error
event, but I need to so I don't need to set up traces to see what they are
during an error. I am emailing the error condition to myself when it
happens.
|
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 to catch that.
How would I customize the error page then?
Regards
DC
|
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 opened it in
Visual Studio 2005.
I've cleared up most errors, but have one that beats the heck out of me.
I have a page:
sales/Item.aspx that has several datagrids in it.
|
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 DisplayErrorMessage. If
EmailErrorMessage was true, it would send an email with the error
details. If DisplayErrorMessage was true, it would display the message
on screen. Also, if an Administrator was logged in, it would display
the message as they could...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |