goober wrote :[color=blue]
> Ladies & Gentlemen:
>
> I have built a form that client-side validates and posts data to a CRM
> beautifully in Internet Explorer (IE) 6. The problem comes in FireFox
> (FF) 1.5 when everything works except the validation. In FF it posts
> fine to my CRM but with no validation!
>
> Here are snippets of my code together after taking out as much as I can
> for brevity sake.
>
> This form, when working, should be able to be filled out, client-side
> validated, and then the data posts to SalesForce (our corporate CRM).
> This whole process works fine in IE, just not in FF.
>
> Please also note that I am not a programmer by trade, just a web
> schmuck trying to get a form to work.
>
> Thanks for any help you can provide.
>
> Ken
>
> <script Language="JavaScript" Type="text/javascript">
>[/color]
Language is deprecated; type is both backward and forward-compatible.
Use only type.
[color=blue]
> function My_Validator()
> {
>
> //Validation for Last Name Content
> if (TheForm.first_name.value == "")[/color]
I'm not going to repeat everything which was said but I am going to tell
you to rely on DOM 2 HTML attributes and methods which are well
supported by modern browsers (including MSIE 6 and MSIE 7):
http://www.w3.org/TR/DOM-Level-2-HTML/html.html
and also to read
Using Web Standards in Your Web Pages
Accessing Elements with the W3C DOM
http://www.mozilla.org/docs/web-deve...tml#dom_access
which contains all one needs to look for in order to fix this sort of
issues.
Gérard
--
remove blah to email me