Closed Thread Icon

Topic awaiting preservation: 'Object Expected' MSIE Error (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=21622" title="Pages that link to Topic awaiting preservation: &amp;#039;Object Expected&amp;#039; MSIE Error (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: &#039;Object Expected&#039; MSIE Error <span class="small">(Page 1 of 1)</span>\

 
Kalan m
Nervous Wreck (II) Inmate

From: Stirling, ON Can.
Insane since: Feb 2004

posted posted 05-01-2004 19:23

This generally means that a function you are trying to call dosen't exist or you have renamed it but are still trying to have it returned somewhere.... right?


I have this function called 'loadAll()' its there, plain as day, largest function on the page, it works (or it did)
I'v gone around changing and adding some other small functions and whatever, maybe making a few tweaks on loadAll() and then all of a sudden when I run the code again my <body onload="return loadAll()"> event fails to return the function giving me a 'Object Expected' error with a reference to the body line.

I DON'T UNDERSTAND! Function exists and works, this I know, why can't it be recognized, is there somthing I'm missing here? Any recommendations on what I might do to rectify this stupid time consuming problem?
Could the length of a function (this one is very long) have any effect?

Thanks alot,

Kalan

(Edited by Kalan m on 05-01-2004 10:55)

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 05-01-2004 20:24

return loadAll()? Why are you returning it in the onload event? If you just want it to execute once the page loads, you should only have to do onload="loadAll()"

Could that be it?


. . : DHTML Slice Puzzle : . . . : Justice 4 Pat Richard : . .

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 05-01-2004 20:30

Well, no, that would not be the problem. I was wrong about not being able to return the function like that.

I think you're going to have to look at the modifications you made and see where you introduced the problem. Do you have a link?


. . : DHTML Slice Puzzle : . . . : Justice 4 Pat Richard : . .

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-01-2004 20:31

Sounds to me like the browser doesn't know about the loadAll function for some reason. Only one way to tell: show us the page =)

If you don't want to show the page to people for some reason, then strip it down to the bare minimum necessary to keep the problem, but remove all of the content and unnecessary code. This also may help you find the problem on your own.


 

Kalan m
Nervous Wreck (II) Inmate

From: Stirling, ON Can.
Insane since: Feb 2004

posted posted 05-02-2004 02:25

Thanks alot guys for the suggestions I have solved the problem, -

The culprit was a lacking brace }

Kalan

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-02-2004 09:16

indeed, a javascript syntax error will cause that block of javascript to not be defined at all.

if you're using version control, it's often faster to revert to your last know good position to do things again instead of debugging to find the error (though of course not as valuable a learning experience).

Kalan m
Nervous Wreck (II) Inmate

From: Stirling, ON Can.
Insane since: Feb 2004

posted posted 05-03-2004 14:37

My dad is always amazed how this computer language stuff only works if it doesen't contain any errors, he is always saying that a best selling novel may contain a few typos by still be very effective and well recieved, however this
damn computer code can't have even a bracket out of place,
sometimes he's very animated about telling me these things, its quite funny.


Peace,

Kalan

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 05-03-2004 15:02

Do you think your dad would be pleased to hear that the auto-pilot of a plane contains some "typos"
Don't talk your dad about the crash of the first Ariane5 which costed 10years of work and $7 billions for an overflow error.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-03-2004 16:19

though the ariane5 crashe was caused by code that was proofed correct - and indeed was - for the ariane4.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 05-03-2004 16:29

Indeed, alas the code was not supposed to deal with different formats of datas, and the attempt to move/cast a 64bits value ( from one module of Ariane5 ) to a 16bits ( to another module ) caused a an error, which even the safety code encountered too and thus initiated the destruction process.

« BackwardsOnwards »

Show Forum Drop Down Menu