martin said the following on 12/12/2005 5:14 AM:[color=blue]
> Can someone please help me with an issue I have with Firefox that generates
> in the console below when running the code below.Strange thing is that IE
> runs it no problem. I don't think it's an async error though as I have seen
> some posts.
> Martin
>
>
> Error: fValue has no properties[/color]
Without seeing the HTML, first guess is that you have a form field named
"Value" and that the following line:
var fValue=document.getElementById("Value");
In IE, it will incorrectly pick it up by name. Mozilla is not so
forgiving. If it is a form element, then use the forms collection:
var fValue= document.forms['formName'].elements['Value']
Not sure I would name a form field Value though. Too easy to confuse it
with the .value property of form fields.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/