Error when openening html code in browser

Error when openening html code in browser

am 06.09.2007 08:47:27 von Harry Bellafonte

Hi

I have created a webpage. When I open it in a browser I see in the
bottom left corner the text 'Done" with an exclamation mark. If I
double click on it a small internet explorer window opens with the
following content:
Line: 3
Char: 3
Error: Object required
Code: 0

How can I find the third line where the error occurs, because on the
third line in the html code there is only a head tag. I don't think
that is the problem. Should I use another program to realy find the
right spot where the error occurs?

Regards

Re: Error when openening html code in browser

am 06.09.2007 09:50:20 von dorward

On Sep 6, 7:47 am, Harry Bellafonte wrote:
> I have created a webpage. When I open it in a browser I see in the
> bottom left corner the text 'Done" with an exclamation mark. If I
> double click on it a small internet explorer window opens with the
> following content:
> Line: 3

That's a JavaScript error.

> How can I find the third line where the error occurs, because on the
> third line in the html code there is only a head tag.

If I remember correctly, the line numbers in IE are for all the
JavaScript referenced by the page as if they were combined into one,
separate, single file.

>Should I use another program to realy find the
> right spot where the error occurs?

Assuming the JS doesn't error only in IE, then you'll probably find it
a lot easier to track down using Firebug for Firefox.

http://www.getfirebug.com/
http://www.getfirefox.com/

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Re: Error when openening html code in browser

am 06.09.2007 14:18:06 von jcbudny

On Sep 6, 1:47 am, Harry Bellafonte wrote:
> Hi
>
> I have created a webpage. When I open it in a browser I see in the
> bottom left corner the text 'Done" with an exclamation mark. If I
> double click on it a small internet explorer window opens with the
> following content:
> Line: 3
> Char: 3
> Error: Object required
> Code: 0
>
> How can I find the third line where the error occurs, because on the
> third line in the html code there is only a head tag. I don't think
> that is the problem. Should I use another program to realy find the
> right spot where the error occurs?
>
> Regards

You could try validating your code though a site like
http://validator.w3.org/#validate_by_uri to see if it can point out
the errors in your code.They also have other validators you can look
through by going to http://www.w3.org/QA/Tools/

Good luck finding your error

Re: Error when openening html code in browser

am 06.09.2007 16:21:43 von lws4art

Harry Bellafonte wrote:
> Hi
>
> I have created a webpage. When I open it in a browser I see in the
> bottom left corner the text 'Done" with an exclamation mark. If I
> double click on it a small internet explorer window opens with the
> following content:
> Line: 3
> Char: 3
> Error: Object required
> Code: 0
>
> How can I find the third line where the error occurs, because on the
> third line in the html code there is only a head tag. I don't think
> that is the problem. Should I use another program to realy find the
> right spot where the error occurs?

Lesson: Do NOT use IE for debugging. They have a *unique* method of
recording errors for debugging, I guess that explain a lot about some of
their software...

Using just about any other browser will be preferable because it will
show in which linked file the error is located! Even in Firefox with no
addon extensions the "Error Console" or Opera's "JavaScript Console"
will pinpoint exactly where the error is.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Error when openening html code in browser

am 10.09.2007 21:28:24 von Harry Bellafonte

On 6 sep, 16:21, "Jonathan N. Little" wrote:
> Harry Bellafonte wrote:
> > Hi
>
> > I have created a webpage. When I open it in a browser I see in the
> > bottom left corner the text 'Done" with an exclamation mark. If I
> > double click on it a small internet explorer window opens with the
> > following content:
> > Line: 3
> > Char: 3
> > Error: Object required
> > Code: 0
>
> > How can I find the third line where the error occurs, because on the
> > third line in the html code there is only a head tag. I don't think
> > that is the problem. Should I use another program to realy find the
> > right spot where the error occurs?
>
> Lesson: Do NOT use IE for debugging. They have a *unique* method of
> recording errors for debugging, I guess that explain a lot about some of
> their software...
>
> Using just about any other browser will be preferable because it will
> show in which linked file the error is located! Even in Firefox with no
> addon extensions the "Error Console" or Opera's "JavaScript Console"
> will pinpoint exactly where the error is.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Hi

Thank you for responding.

I have opened the webpage in both Firefox and Netscape. I dont see the
error in both of them. I only see the error in Internet Explorer. How
do I determine where the error is located?

Kind Regards

Re: Error when openening html code in browser

am 10.09.2007 22:35:05 von a.nony.mous

Harry Bellafonte wrote:

> I have opened the webpage in both Firefox and Netscape. I dont see the
> error in both of them. I only see the error in Internet Explorer. How
> do I determine where the error is located?

If you were to post the URL to the page, perhaps someone could help.

--
-bts
-Motorcycles defy gravity; cars just suck

Re: Error when openening html code in browser

am 11.09.2007 11:39:09 von Harry Bellafonte

Beauregard T. Shagnasty schreef:
> Harry Bellafonte wrote:
>
> > I have opened the webpage in both Firefox and Netscape. I dont see the
> > error in both of them. I only see the error in Internet Explorer. How
> > do I determine where the error is located?
>
> If you were to post the URL to the page, perhaps someone could help.
>
> --
> -bts
> -Motorcycles defy gravity; cars just suck

Hi

The webpage is behind our firewall on a seperate machine. It is not
reachable outside our network.

Re: Error when openening html code in browser

am 11.09.2007 12:27:38 von rf

"Harry Bellafonte" wrote in message
news:1189503549.828573.264770@k79g2000hse.googlegroups.com.. .
>
> Beauregard T. Shagnasty schreef:

>> If you were to post the URL to the page, perhaps someone could help.

> The webpage is behind our firewall on a seperate machine. It is not
> reachable outside our network.

And how many times have we heard this?

So build a non-sensitive page exhibiting the problem and put it up on a free
server somewhere.

Sometimes building this public page will make you examine the code and
experience a bingo moment.

Otherwise: no URL, no idea. Along the lines of: my car doesn't go fast when
I press the right hand pedal. Oh, you want to actually *see* the car?

--
Richard.

Re: Error when openening html code in browser

am 11.09.2007 17:57:57 von lws4art

rf wrote:
> "Harry Bellafonte" wrote in message
> news:1189503549.828573.264770@k79g2000hse.googlegroups.com.. .
>> Beauregard T. Shagnasty schreef:
>
>>> If you were to post the URL to the page, perhaps someone could help.
>
>> The webpage is behind our firewall on a seperate machine. It is not
>> reachable outside our network.
>
> And how many times have we heard this?
>
> So build a non-sensitive page exhibiting the problem and put it up on a free
> server somewhere.
>
> Sometimes building this public page will make you examine the code and
> experience a bingo moment.
>
> Otherwise: no URL, no idea. Along the lines of: my car doesn't go fast when
> I press the right hand pedal. Oh, you want to actually *see* the car?
>

The answer is on page 5 of the book that I have in my hand! :-D

Boy it gets had to not get cynical...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Re: Error when openening html code in browser

am 11.09.2007 19:44:03 von Sherm Pendley

"Jonathan N. Little" writes:

> Boy it gets [hard] to not get cynical...

I prefer to call it "realistic." :-\

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: Error when openening html code in browser

am 12.09.2007 03:23:36 von dan

On Sep 10, 3:28 pm, Harry Bellafonte wrote:
> I have opened the webpage in both Firefox and Netscape. I dont see the
> error in both of them. I only see the error in Internet Explorer. How
> do I determine where the error is located?

In the Mozilla family of browsers (Firefox, Netscape, Seamonkey,
etc.), you can generally get the JavaScript console by typing
"javascript:" into the address bar. This will probably show you your
error.

--
Dan