DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37315>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37315





------- Additional Comments From [EMAIL PROTECTED]  2005-11-01 23:58 -------
I tested your suggestion in IE 5 and it failed when it had a input field with
name="name".

I made a slight change and tested in IE 5,6, and latest firefox and it appears
to work fine:

  function retrieveFormName(form) {

    if (form.getAttributeNode) {
        if (form.getAttributeNode("id") &&
            form.getAttributeNode("id").value) {
            return form.getAttributeNode("id").value;
        } else {
            return form.getAttributeNode("name").value;
        }
   } else if (form.getAttribute) {
        if (form.getAttribute("id")) {
            return form.getAttribute("id");
        } else {
            return form.attributes["name"];
        }
    } else {
        if (form.id) {
            return form.id;
        } else {
            return form.name;
        }
    }
}



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to