Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-208

jcv_isFieldPresent function causes error in IE5

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0 Release
    • Fix Version/s: 1.3.1 Release
    • Component/s: JavaScript
    • Labels:
      None
    • Environment:

      Internet Explorer 5.01

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              niallp Niall Pemberton
              Reporter:
              naus Leo Asanov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: