Yes, below is a simple test page. I can put a breakpoint in the
showInfo function, but I can't type a value into the new watch
expression. It doesn't seem to matter which page I attempt to debug.
It doesn't work in any of them -- even external js files, which I
normally use.
<html>
<head>
<title>anchorOffsets</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script language="JavaScript">
function showInfo(pAnchorId)
{
var navDiv = document.getElementById('edlNavBreadcrumbPane');
var navDivLeft = navDiv.offsetLeft;
var navDivTop = navDiv.offsetTop;
var navDivHeight = navDiv.offsetHeight;
var anchor = document.getElementById(pAnchorId);
var anchorLeft = anchor.offsetLeft;
var anchorTop = anchor.offsetTop;
var anchorTop = anchor.offsetTop;
var anchorHeight = anchor.offsetHeight;
alert('navDiv left: ' + navDivLeft + ' ' + pAnchorId + ' left: ' +
anchorLeft + '\n\n' +
' navDiv top: ' + navDivTop + ' ' + pAnchorId + ' top: ' +
anchorTop + '\n\n' +
' navDiv height: ' + navDivHeight + ' ' + pAnchorId + '
height: ' + anchorHeight );
}
</script>
</head>
<body>
<div id="outerDiv">
Maybe there's some text here.
<br/>
And a little more text here.
<div id="edlNavBreadcrumbPane">
<div id="unnamed">
<span>
<a id="anchor1" href="javascript:showInfo('anchor1');">BMX High
School</a>
</span>
<span> : </span>
<span>
<a id="anchor2" href="javascript:showInfo('anchor2');">A Group</a>
</span>
<span> : </span>
<span>
<a id="anchor3" href="javascript:showInfo('anchor3');">General
Information</a>
</span>
</div>
</div>
</div>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---