JJ_377@hotmail.com wrote:
<snip>[color=blue]
> The *first* alert in the Validate function works in NS,
> but the rest of the code does not and therefore I wonder
> about the way I am referencing the controls...[/color]
<snip>
Why wonder, Netscape/Gecko browsers provide very explicit error reports
in their javascript console?
<script language="javascript">
The language attribute is deprecated and the type attribute is required
in valid HTML 4. So:-
<script type="text/javascript">
<snip>[color=blue]
> document.all.txtLastName.value == "")[/color]
Only the very latest Mozilla/Gecko browsers support - document.all - so
that does not include any Netscape releases.
[color=blue]
> if(trim(document.forms("frmInfo").[/color]
The - document.forms - collection is (W3C) specified as an object not a
function. As such its members should be referenced using bracket
notation.
[color=blue]
>elements("txtFirstName").value) ==[/color]
<snip>
The - elements - collection of form elements is (W3C) specified as an
object not a function. As such its members should be referenced using
bracket notation.
Netscape browsers will not have made it past those two errors.
Richard.