On Apr 7, 2005 6:58 PM, Geoff Bowers <[EMAIL PROTECTED]> wrote:
It's a pretty old piece of JS that predates Firefox. I suspect it needs
updating -- any contribution welcome :)
-- geoff
http://www.daemon.com.au/
Emanuel wrote:
> 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" 'Teaser')"
> '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/
--
=+=+=+=+=+=+=+=+=+=+=+=+
Emanuel Costa
site: http://www.emanuelcosta.com
msn: [EMAIL PROTECTED]
ICQ: 8013683
Orkut: Emanuel Costa
Skype: Emanweb
=+=+=+=+=+=+=+=+=+=+=+=+
"Education is a progressive discovery of our own ignorance."
- Will Durant --- 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/
