Hi Folks,
I am having trouble while using the tag countertext on Firefox. The count
text do not change and the following alert message shows up:
"Warning: element referenced by ID/NAME in the global scope. Use W3C
standard document.getElementByID() instead.
Source file: http://192.168.1.158/farcry/navajo..... line 163"
Line 163 I have this:
<script type="text/javascript">
<!-- to hide script contents from old browsers
function UpdateCounter(FormName, FieldName) {
counter =
(window.document.forms[FormName][FieldName].value.length);
if (counter <150){
eval("dm_ct_countDown_" + FormName + "_" +
FieldName).innerText =
counter; /* this is line 163 */
} else {
if (!(event.keyCode == "8" || event.keyCode == "46" ||
(event.keyCode >=
"33" && event.keyCode <= "40"))) {
event.returnValue=false;
}
eval("dm_ct_countDown_" + FormName + "_" +
FieldName).innerText = "150";
}
}
// end hiding contents from old browsers -->
</script>and the following html code may be needed for debugging where
in
the CF code I am using <tags:countertext formname="editform"
fieldname="Teaser" fieldvalue="#output.Teaser#" counter="150"> :
<div id="dm_ct_container_editform_Teaser">
<p id="dm_ct_Text_editform_Teaser"><span
id="dm_ct_countDown_editform_Teaser">0</span>/150</p>
<textarea id="dm_ct_textbox_editform_Teaser" cols="40" rows="8"
name="Teaser" onkeydown="javascript:UpdateCounter('editform', 'Teaser')"
onkeyup="javascript:UpdateCounter('editform', 'Teaser')">This is a test
artist teaser</textarea>
</div>
<script type="text/javascript">
<!-- to hide script contents from old browsers
UpdateCounter('editform','Teaser');
// end hiding contents from old browsers -->
</script>
I am using Farcry 2.3, SQL Server and Firefox on Mac or Win. (on IE works
just fine)
Am I doing something wrong or is it an issue?
Thank you
Emanuel Costa
---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/