Dave Blair wrote:
[color=blue]
> However, we can't get the following JavaScript to work in Firefox and
> similar code is used in lots of the intranet stuff.
> The code should bring up a message box with a warning and not allow[/color]
[color=blue]
> if (checkempty(Document.myauthor.Candidate.Value,"You have left the
> Candidate field empty."))= false then validation=false
>
>
> If validation= True then
> myauthor_OnSubmit = True
> else
> myauthor_OnSubmit = False
> End if
> End function
>
>
> Function checkempty(ByVal FieldValue, ByVal message)
> If FieldValue = "" then
> MsgBox message, 8, Header
> checkempty = False
> else
> checkempty = true
> End if
> end function
>
> No errors or warnings appear in the firefox JavaScript console. The
> page just accepts the form and continues as if the checking code
> weren't there at all.[/color]
That is not JavaScript but VBScript so there is no way FireFox or any
other browser besides IE/Win is going to run that code.
--
Martin Honnen
http://JavaScript.FAQTs.com/