You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "matthew.hawthorne" <ma...@apache.org> on 2004/03/26 18:23:30 UTC

Re: cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateUtilities.js validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

rleland@apache.org wrote:
> I realized that after making this patch that there is a DOM
> javascript call called getAttribute()  that will probably
> work better than what I created. What I have will be succeptable
> to attribute hiding by an html element named 'attributes' which
> I am sure exists in somebody's ActionForm.


I don't think getAttribute works in IE though.  From what I've seen, it 
works in Mozilla, but in IE you have to use the "element.attribute" format.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: cvs commit: jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript validateUtilities.js validateByte.js validateCreditCard.js validateDate.js validateEmail.js validateFloat.js validateFloatRange.js validateIntRange.js validateInteger.js validateMask.js validateMaxLength.js validateMinLength.js validateRequired.js validateShort.js

Posted by Nacho Gonzalez <na...@arnet-es.com>.
What you probably want is the following:

oAttribute = object.getAttributeNode(sName)

This works in IE since 4.0. Of course it works with every DOM Level 1 
compliant browser.

http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org