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

jcv_isFieldPresent function causes error in IE5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0 Release
    • 1.3.1 Release
    • JavaScript
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: