Click to See Complete Forum and Search --> : Javascript Error Message


Rik Comery
04-17-2003, 05:00 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.

Rik Comery
04-17-2003, 11:36 AM
Thanks Dave.

The Global Bond banner is the animated gif advertisement, on the left hand side, in between the ticker and the main text. Clicking this produces the error for me. If you are not seeing it, is there some reason why i am?

What I am seeing, is that many of your links are trying to download something to my comuter

This confused me. None of the links should download anything to your computer. they all link to another page, or a PDF file. The pages have the unusual extension of .hcst, but that is just a page. Can you explain please. :)

DrDaMour
04-17-2003, 04:49 PM
yeah dave, it's a pdf, go download adobe and jump into the 21st century man!

as to that error, it is probalby your settimer function calling on a object that is no longer in ram, becuaes the page has changed, you'll have to set a sentinel in your ticker function to see if you are still on teh page, and set the sentenel on an onunload event, or whatever they're called.