Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

New site w javascript errors



10:31 am on Jul 14, 2002 (gmt 0)


Can you pls test this site (it's a mock-up, so pay no attention to the lousy image enlargements:)
/KPA_Ultra/ in the profile site (see email address for domain)

Obviously (not seen by me), there's a java script error on each main frame page (they're from a template) saying that's line 107, char 56 is wrong. The erroneous line in the script reads:

if (document.all) {g=eval(f+"document.all['"+el+"']");d=g.style;

This is waaayyy above my head to fix. I've looked into O'Reilly's about "style" in java scripts, and even if I don't understand half of it, it appears as if the CSS I have linked to the pages (and the scripts elements) might cause this?

A million TIA for your kind, intelligent input.


[edited by: tedster at 1:23 pm (utc) on July 14, 2002]
[edit reason] remove link [/edit]


1:26 pm on Jul 14, 2002 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome to the forum Dan.

That is rather complex complex code - I am starting to unravel it, so bear with me.

Also, for what it's worth, Netscape reports an error on line 117 (d has no value). This line doesn't run in Explorer so it's not throwing an error.


1:38 pm on Jul 14, 2002 (gmt 0)

10+ Year Member

The error is "g.style is not an object", which means that the variable g does not contain the property style.

The function P7AniMagic() should be passed a number of arguments, one of them called el. el should be the name of an HTMLElement object; it may also have a query and then a reference to a window -- like this:


You're using a frameset (I don't know why), so variable el should contain a reference to the main frame after the ?. That's what you need to test for.


1:49 pm on Jul 14, 2002 (gmt 0)

Thanks for input,

Tedster: I'm grateful for anything you can find that will fix this. If you like complete code or anything else, just tell.

Rewboss: If I sit down and think, I might grasp 25% of your advise. But I will see what I can do.
Why frameset? I want the site centered in any screen resolution and also the head (the banner with logo) to show all the time to avoid annoying re-load. For some reason, framesets appears to be "out of fashion".
But since I'm far from a tech (as you already understood), any advise to avoid frameset is also appreciated.



2:55 pm on Jul 14, 2002 (gmt 0)


Obvioulsy, I didn't read the rules for Webmaster World carefully enough. Links to sites are not allowed and the URL I had included in my original post has been removed accordingly.

Sorry, but that was one of the most ridiculous regulations I have heard of in a long time. How people can discuss their sites and get some input without that option beats me. It's like inviting to a philately meeting but not allowing the participants to bring their stamp collection because "some might bring fakes".

Oh, well. Who am I to complain, a newbie and all... I'll have to find some other forum.

Anyway, thanks Tedster and Rewboss, for taking your time to reply.



7:25 am on Jul 15, 2002 (gmt 0)

10+ Year Member

Dan, you can put the URL in your profile and refer people to that. You can also paste examples of code here.

I've been on message boards where URLs are allowed (including "please critique my site" type forums), and while this is often useful, I have to say that they often also have problems with spammers and other people who really just want to promote their own sites.

Even worse, people sometimes post a link to a rival's site ("please give me your thoughts") which is then duly rubbished by other posters. Webmaster looks at his stats, sees a lot of referrals to an internet bulletin board, checks in, gets annoyed, joins up and the flames begin. It's not pretty when that happens.

I guess the admins here err on the side of caution. ::shrug::


7:58 am on Jul 15, 2002 (gmt 0)


Thanks. I thought about placing the URL in my sig, but instead, I posted in a couple of newsgroups (Dreamweaver and a dedicated javascript group). And I have already a fruitful (?) correspondence going on with a couple of skilled js-addicts.

I am aware that some folks use the option to post links as a way to get hits to their sites or to perform other antics. But I think that is something you have to live with considering the advantages for "honest" posters (which I assume are many times more).

Well, my intention is not to start a debate about this. The guys in charge here can do as they please. I'm just disappointed, but at the same time glad that there are other venues...



Featured Threads

Hot Threads This Week

Hot Threads This Month