P
Philip Herlihy
I traced a javascript error to this line:
document.all("characterCount").innerText = commentTextLength;
This is on a page deep inside an ordering sequence, so it's probably not
worth copying the URL here.
According to my crib-sheet, "document.all" is only valid in the javascript
of IE4 and later. My browser is IE6 (SP1) which qualifies, but the
javascript I have doesn't like it. I also have Frontpage 2002 installed.
Any ideas? I do seem to see a lot of javascript errors, and not just my
own!
Here are the first lines of Javascript on the page, including the offending
line, marked with an added comment on the line before:
------------------------------------
script src="/OMLibrary/script/functionsICS.js"
language="javascript"></script>
<!-- /common head -->
<SCRIPT LANGUAGE="javascript">
<!--
//---------------------------------------------------------
// this function counts up the text in the comment area and
// displays it on the page
//---------------------------------------------------------
function countText()
{
var commentText = document.forms.frmFeedback.commentArea.value;
var commentTextLength = 0;
commentTextLength = commentText.length;
//### marker comment added by OP - see next line ###
document.all("characterCount").innerText = commentTextLength;
if (commentTextLength > 1000)
{
alert('Please limit your comments to 1000 characters.');
document.forms.frmFeedback.commentArea.value =
commentText.substring(0,1000);
countText();
}
return true;
}
document.all("characterCount").innerText = commentTextLength;
This is on a page deep inside an ordering sequence, so it's probably not
worth copying the URL here.
According to my crib-sheet, "document.all" is only valid in the javascript
of IE4 and later. My browser is IE6 (SP1) which qualifies, but the
javascript I have doesn't like it. I also have Frontpage 2002 installed.
Any ideas? I do seem to see a lot of javascript errors, and not just my
own!
Here are the first lines of Javascript on the page, including the offending
line, marked with an added comment on the line before:
------------------------------------
script src="/OMLibrary/script/functionsICS.js"
language="javascript"></script>
<!-- /common head -->
<SCRIPT LANGUAGE="javascript">
<!--
//---------------------------------------------------------
// this function counts up the text in the comment area and
// displays it on the page
//---------------------------------------------------------
function countText()
{
var commentText = document.forms.frmFeedback.commentArea.value;
var commentTextLength = 0;
commentTextLength = commentText.length;
//### marker comment added by OP - see next line ###
document.all("characterCount").innerText = commentTextLength;
if (commentTextLength > 1000)
{
alert('Please limit your comments to 1000 characters.');
document.forms.frmFeedback.commentArea.value =
commentText.substring(0,1000);
countText();
}
return true;
}