Issue Details (XML | Word | Printable)

Key: VALIDATOR-208
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Niall Pemberton
Reporter: Leo Asanov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Validator

jcv_isFieldPresent function causes error in IE5

Created: 23/Nov/06 02:52 AM   Updated: 12/Nov/07 07:25 PM
Component/s: JavaScript
Affects Version/s: 1.3.0 Release
Fix Version/s: 1.3.1 Release

Time Tracking:
Not Specified

Environment: Internet Explorer 5.01

Resolution Date: 23/Nov/06 01:28 PM


 Description  « Hide
Hi,

In jcv_isFieldPresent function code
"if (field == null || field == undefined)"
causes Javascript error in IE5.

Should be
if (field == null || typeof field == 'undefined')

That way it should work in all browsers.

I guess it would make sense to do a search for other references to "undefined" in javascript code.

Regards,
Leo

P.S. The following link has the instructions on how to run IE5 without need to install it locally. You night find it useful.
http://labs.insert-title.com/labs/Multiple-IEs-in-Windows_article795.aspx



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Niall Pemberton added a comment - 23/Nov/06 01:28 PM
Fixed, thanks!

http://svn.apache.org/viewvc?view=rev&revision=478566

I've tested this on IE6 and Firefox 1.5 - but if you could test on IE5 it would be appreciated. You can download the next nightly build to test it out here:

http://people.apache.org/builds/jakarta-commons/nightly/commons-validator/

Niall