If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Obect Expected and Object Required Issue

This is part 2 (maybe 3) to my problem. When debugging the script, I get the following errors : Object expected character 9 this is near the bottom of the page and Object required character 3 this is about 3/4 down the page.I have highlighted the referenced part of the code below with the same color here to hopefully make it easier. I have had to remove some of the beginning cose due to character limitations here.

If you post any code please clean it up/format it a little so it’s easier to read and then put it in between [CODE][/CODE] tags. It makes scanning your posts much easier. You can do this by clicking the small ‘#’ icon above the reply field.

origtext is not available in the scope concerned and function Tip_WriteObj() doesn’t exist.

The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.

There is never any var declaration for it, so presumably it is thus automatically a global (page scope).

But of course the real problem with all this code is that it is at least partially generated by DrunkWalking (misnamed "DreamWeaver" by the authors). I would never trust any code that DoofusWhomper created.

I mean just look at that:

Code:

function MM_reloadPage(init) { //reloads the window if Nav4 resized

Nav4 means "Netscape Navigator version 4". A product that *DIED* about 12 years ago. Dead. Gone. Maybe 3 people in the world still use it?

And you *know* that DingleWimper's MM_findObj code is similarly obsolete.

Anyway, clearly we are not being shown *ALL* the code, because the DuckWhacker code for MM_findObj is not there, so who knows what else has been omitted?

i got lost looking for the blue text but the problem with the red text is that it searches for body objects from the head, before they appear. the code should go at the bottom of the page, just inside </body>. or in the circular file...

LOL! Another great alias! Anyway, NightmareStalker is basically 15 years old and has had virtually no improvements in all that time. (This is at least true for its JS code generation, but seeing how it still lays everything out using many nested <table>s one has to think it's true of most all the stuff it generates.)