Can you submit a bugzilla against Commons Validator for this and then I'll
look at trying patching in your suggestion. Thx.

http://jakarta.apache.org/commons/validator/issue-tracking.html

Niall

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <'user@struts.apache.org'>
Sent: Thursday, January 05, 2006 2:10 PM
Subject: Re: Validation in ie5

Hi, I changed the retrieveFormName method so it now lookes like this :

function retrieveFormName(form) {

    var x;

    if (form.getAttributeNode) {

        if (form.getAttributeNode("id") &&
form.getAttributeNode("id").value) {

            x = form.getAttributeNode("id").value;

        } else {

            x = form.getAttributeNode("name").value;

        }

    } else if (form.getAttribute) {

        if (form.getAttribute("name")) {

            x = form.getAttribute("name");

        } else {

            x =  form.getAttribute("id");

        }

    } else {

        if (form.id) {

            x =  form.id;

        } else {

            x =  form.name;

        }

    }

    return x;

 }



This works in IE5.0.......... don't know if it has caused any new
problems yet




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to