Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

debugging javascript page code

Participant ,
Dec 22, 2008 Dec 22, 2008

Copy link to clipboard

Copied

on IE page error reads:

Line: 186
Char: 4
Error: 'contentdivs[...].style' is null or not an object
Code:0
URL: http://www.canchair.com/new_web_product_detail.asp?ProductID=7&ProductFamily=&ProductFamilySub=

The part of the page that does not function as a result of the error is the javascript customer showcase script which can be viewed by clicking on "Customer Showcase" tab

What stumps me is that the error does not always exist. The error usually does not occur when going to the page directly.

It does,however, occur often when visiting:

1. http://www.canchair.com/new_web_product_detail.asp?ProductID=499&ProductFamily=5&ProductFamilySub=
2. and clicking on model #9840 which opens a small popup window.
3. and then clicking on the image featured on the popup window.

>What can be causing the error, or atleast, how can I make more sense of the error message?
TOPICS
Server side applications

Views

437
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 29, 2008 Dec 29, 2008

Copy link to clipboard

Copied

I'm not getting the error in Firefox 3 or IE 7. What browser are you using?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 30, 2008 Dec 30, 2008

Copy link to clipboard

Copied

thanks for the response!

Browser is IE7 and error still persists (sometimes yes and sometimes no)

does the error message details give a clue to what may be going on?

As this script is dependent on div tags to determine the begining and end of the content slider, can orphaned div tags on the page be causing this error?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 30, 2008 Dec 30, 2008

Copy link to clipboard

Copied

LATEST
It may mean one of your div tags just needs a style= attribute. Spry and other JavaScript frameworks often identify objects on a page by attributes, so if it doesn't exist, it may throw an error.

What is the code around the error (line 186)?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines