Discussion Locked

Validator Form Works in Firefox but doesn't in IExplorer

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a PHP form callinf a Validator Java Script. It works ok in Mozilla Firefox 1.5.0.9, but does in Internet Explorer 6.0.29
It doesn't recognize any value on the form, then is complaining on the mandatory fields: so looks like Frm.elements[j].value is not valid in Intener Explorer, how I can change this script?
Thanks,

2 replies

by tony hopkinson

The only thing I could find (I was interested, and had little to do, I know I should get a life :D )
was this
http://www.wdj.co.uk/articles/dhtml2/dhtml2.html

Seems to be suggesting you need to start at

document.forms to get

documents.forms[f].elements[j]

and that forms[0] by itself is not an object.

If it's right you just need an outer loop to iterate through forms.

so forms[0] and documents.forms[0] are different things. Weird but possibly true.

The other ones I found that might adapt were using collections based on getElemnentsbytagname, which actually might work out a little neater, as in validate each type of form element as opposed to testing the type in a big if statement to see which validation to perform.

by deepsand

The "Discussion" forum is for matters of general discussion, not specific problems in search of a solution.

Post problems such as this to the "Question" forum, rather than the "Discussion" forum. There are those who specifically seek out problems in need of a solution, and that's where they go to look for such.

Additionally, the "Question" forum provides for your rating the helpfulness of responses, so that others with the same or similar problem might be able to more easily find a solution.

This discussion is closed to new replies.