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=35127>.
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=35127





------- Additional Comments From [EMAIL PROTECTED]  2005-07-26 23:04 -------
Can you please re-open this bug (I am not the OP)?

The fix in http://svn.apache.org/viewcvs.cgi?rev=191270&view=rev (patchset
191270) only fixes the problem in Firefox. MSIE is still broken.

As an example, the code in patcheset 191270 looks like:

        var formName = form.getAttributeNode("name"); 
        if (formName == null) {
            formName = form.getAttributeNode("id");
        } 
        oByte = eval('new ' + formName.value + '_ByteValidations()');

To fix both MSIE and firefox, you have to instead write something like:

        oByte = eval('new ' + retrieveFormName(form) + '_ByteValidations()');

where retrieveFormName() is a function in validateUtilities.js (why is it empty?
this is the perfect use for it):

    /**
     * Retreive the name of the form
     * @param form The form validation is taking place on.
     */
    function retrieveFormName(form) {
        // if id is available, then use it (for xhtml)
        // otherwise, use the value of the name attribute
        var formName = form.id ? form.id :
            form.getAttributeNode("name").value;
        return formName;
    }

Now, you will be able to reuse retrieveFormName in all the other .js files.

Zarar, can you please re-open the bug?
Don, can you please integrate this latest patch.

-- 
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