No that doesn't solve the problem.
I can set a breakpoint to the line after this one and can check out that divLeft is an {Object} with clientWidth=250.
divLeftScroll is also type of Object.
To make it more kurrios:
The next line in the code ist divLeftScroll.style.height
Sample:
divLeftScroll.style.width = divLeft.clientWidth - padding + "px"; // Error
divLeftScroll.style.height
VS stopps at the error and when I continue I get no more errors.
But:
// divLeftScroll.style.width = divLeft.clientWidth - padding + "px"; // no error for sure
divLeftScroll.style.height
So when I delete this line I get the error at the next one ...
Main Topics
Browse All Topics





by: mplungjanPosted on 2009-08-07 at 02:07:46ID: 25040966
since I cannot see if you call your code after the elements on the page exists, I can only guess your error might be
h = (divLeft.clientWidth - padding) + "px"; // add the px after calculation
divLeftScroll.style.widt