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
Return to search
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
Repository Revision Date User Message
ASF #478566 Thu Nov 23 13:24:38 UTC 2006 niallp VALIDATOR-208 - JavaScript function jcv_isFieldPresent() causes error in IE5 using "undefined" - thanks to Leo Asanov
Files Changed
MODIFY /jakarta/commons/proper/validator/trunk/xdocs/changes.xml
MODIFY /jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js

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


Niall Pemberton made changes - 23/Nov/06 01:28 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Assignee Niall Pemberton [ niallp ]
Fix Version/s 1.3.1 [ 12311934 ]
Status Open [ 1 ] Resolved [ 5 ]
Henri Yandell made changes - 12/Nov/07 07:25 PM
Status Resolved [ 5 ] Closed [ 6 ]