PDA

View Full Version : Javascript Error Message


Rik Comery
04-17-2003, 11:18 AM
I have built a News Ticker, which i have included on our home page. This works fine.

However, since this has been added, when i click other links, where the frame called "main" is the target, i get the following error message.

document.all.layer2.offsetWidth is null or not an object

Clicking links where _top is the target work fine.

Can someone please tell me what i have done wrong. To view the code, look at the site

Website (http://www.baring-asset.com/xpedio/groups/public/@local/documents/code/uk-home-index.hcst)

To see the error, click the blue "Global Bond" banner at the top left

wyattwebb
04-17-2003, 04:13 PM
well this isn't a good answer but since everything seems to work as it should except the error, just trap ther error and ignor it.


somewhere in you javascript put

window.onerror = return true;

That should help until you can debug the news picker script.

eggman
04-17-2003, 04:27 PM
My guess is that the div is positioned relative and not absolute, although I am not absolutely (no pun intended) sure. I have run across this problem before, and in those cases, the problem was as I stated first.