Forum Moderators: open

Message Too Old, No Replies

Help Diagnosing ASP syntax error

Invalid Argument?

         

nwhorton

8:11 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



On one of my websites I use an ASP script to resize the navigation bar on the left so that it always extends to the bottom of the page, even when there is a lot of content in the body. The script works fine, however as you'll noticed I'm getting an error on each page that appears to be coming from this code. Here is the script:


<script type=text/javascript>

function adjustHeight()
{
var col_1 = document.getElementById("content-col-1");
var col_2 = document.getElementById("content-col-2");
var nav3 = document.getElementById("navbar3");
var adj1 = document.getElementById("adj1");
var adj2 = document.getElementById("adj2");
var adj_height = Math.max(col_1.offsetHeight, col_2.offsetHeight) - nav3.offsetHeight - (adj2.offsetHeight / 2) - 10;
document.getElementById('navbar3').style.paddingBottom = adj_height + "px";
}
</script>

According to IE, the error is in the final line, character 2...does anyone recognize the problem?

[edited by: jatar_k at 8:55 pm (utc) on Sep. 27, 2005]
[edit reason] no urls thanks [/edit]

Easy_Coder

9:40 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try the javascript forum if it's not an asp error. If it's an asp error then post the error msg...

nwhorton

5:00 pm on Sep 28, 2005 (gmt 0)

10+ Year Member



Ah ok, I'll try there.