PDA

View Full Version : ddscrollspy.js offsettop null



dash
08-13-2013, 03:27 PM
Hello I am trying understand how the ddscrollspy.js work I am getting an error on line 84 I don't know what I am doing wrong. i get the message Cannot read property 'offsettop' of undefined. I try debugging it finding out that targets goes to null can someone help me?
Best regard

jscheuer1
08-13-2013, 04:16 PM
Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and in the future:

Warning: Please include a link to the DD script(s) in question in your post. See this post (http://www.dynamicdrive.com/forums/showpost.php?p=7) for more information.

Do you mean:

http://www.dynamicdrive.com/dynamicindex1/ddscrollspymenu.htm

?

If not, which script? If so, are you getting this error on the DD demo page or just on your own installation? If it's just your installation, please post a link to the page on your site with the problematic code so we can check it out.

If it is only on your page, double check to make sure you have content for each menu link that has a # tag href and that each one (each pair) is unique.