You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/02/08 21:54:20 UTC

DO NOT REPLY [Bug 38581] New: - error: form.getAttributeNode is not a function in netscape 4.7

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

           Summary: error: form.getAttributeNode is not a function in
                    netscape 4.7
           Product: Commons
           Version: unspecified
          Platform: Sun
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: reddy.yugandhar@gmail.com


Downloaded the struts 1.2.8 and tried the validator framework(for client and 
server side validations).
It worked fine in IE6 and Netscape 7.2 but in netscape 4.7 it gives the 
following error:
'form.getAttributeNode is not a function'

Tried changing the form.getAttributeNode to form.getAttribute, but no luck. It 
said 'form.getAttribute is not a function'.

Can anyone throw some light on it

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] Disabled is Undefined in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581


niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[validator] error:          |[validator] Disabled is
                   |form.getAttributeNode is not|Undefined in netscape 4.7
                   |a function in netscape 4.7  |




------- Additional Comments From niallp@apache.org  2006-02-10 14:51 -------
I have moved the disabled check into the jcv_isFieldPresent() method and it 
should now cater for undefined:

   http://svn.apache.org/viewcvs?rev=376673&view=rev

Can you test this out in Netscape 4.7 please, it should be available in the 
next nightly build:

  http://cvs.apache.org/builds/jakarta-commons/nightly/commons-validator/

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] Disabled is Undefined in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581





------- Additional Comments From niallp@apache.org  2006-02-14 18:43 -------
(In reply to comment #4)
> Thanks for the prompt reply.
> I downloded the jar but it still does not work.
> It doesn't throw any error. It performs the server side validation and it 
does 
> not perform the client side validation.

OK I downloads Commons Validator from 14th Feb (commons-validator-20060214.zip) 
and I downloaded Netscape 4.79 and ran the struts-examples webapp. There was a 
problem initially because one of the form fields had a name of "name"...

   <input type="text" name="name" />

...but once I removed that, the Javascript validation worked fine.

You'll either have to debug it yourself and tell me what the problem is - or 
attach the generated html page to this bug so I can look at it.

Are you sure the app was picking up the correct validator jar - did it include 
the correct version of the jcv_isFieldPresent() method in your javascript?

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] Disabled is Undefined in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581





------- Additional Comments From reddy.yugandhar@gmail.com  2006-02-14 16:08 -------
Thanks for the prompt reply.

I downloded the jar but it still does not work.
It doesn't throw any error. It performs the server side validation and it does 
not perform the client side validation.
Can you please look into it.

Thanks,
Yugandhar



(In reply to comment #3)
> I have moved the disabled check into the jcv_isFieldPresent() method and it 
> should now cater for undefined:
>    http://svn.apache.org/viewcvs?rev=376673&view=rev
> Can you test this out in Netscape 4.7 please, it should be available in the 
> next nightly build:
>   http://cvs.apache.org/builds/jakarta-commons/nightly/commons-validator/

(In reply to comment #3)
> I have moved the disabled check into the jcv_isFieldPresent() method and it 
> should now cater for undefined:
>    http://svn.apache.org/viewcvs?rev=376673&view=rev
> Can you test this out in Netscape 4.7 please, it should be available in the 
> next nightly build:
>   http://cvs.apache.org/builds/jakarta-commons/nightly/commons-validator/



-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] error: form.getAttributeNode is not a function in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581


niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|error: form.getAttributeNode|[validator] error:
                   |is not a function in        |form.getAttributeNode is not
                   |netscape 4.7                |a function in netscape 4.7




------- Additional Comments From niallp@apache.org  2006-02-08 22:46 -------
Struts 1.2.8 ships with Commons Validator 1.1.4 - the latest version of Commons 
Validator (1.2.0) has changed how this works...

1) First it tests if the getAttributeNode method exists - if it does it uses it.
2) Second it tests if the getAttribute method exists - if it does it uses it.
3) Otherwise uses either "form.id" or "form.name"

You can download Commons Validator 1.2.0 here:

  http://jakarta.apache.org/commons/validator/downloads.html

Simply replace the Commons Validator jar in your struts application to upgrade 
to Validator 1.2.0. More details of Version 1.2.0 and upgrading are here:

  http://wiki.apache.org/jakarta-commons/ValidatorVersion120

If you could try this version out with Netscape 4.7 and let us know if 
Validator 1.2.0 resolves this issue, thx.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] Disabled is Undefined in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581


niallp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From niallp@apache.org  2006-03-08 15:09 -------
Closing as FIXED

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38581] - [validator] error: form.getAttributeNode is not a function in netscape 4.7

Posted by bu...@apache.org.
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=38581>.
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=38581





------- Additional Comments From reddy.yugandhar@gmail.com  2006-02-10 04:13 -------
(In reply to comment #1)
> Struts 1.2.8 ships with Commons Validator 1.1.4 - the latest version of Commons 
> Validator (1.2.0) has changed how this works...
> 
> 1) First it tests if the getAttributeNode method exists - if it does it uses it.
> 2) Second it tests if the getAttribute method exists - if it does it uses it.
> 3) Otherwise uses either "form.id" or "form.name"
> 
> You can download Commons Validator 1.2.0 here:
> 
>   http://jakarta.apache.org/commons/validator/downloads.html
> 
> Simply replace the Commons Validator jar in your struts application to upgrade 
> to Validator 1.2.0. More details of Version 1.2.0 and upgrading are here:
> 
>   http://wiki.apache.org/jakarta-commons/ValidatorVersion120
> 
> If you could try this version out with Netscape 4.7 and let us know if 
> Validator 1.2.0 resolves this issue, thx.

Thanks for the reply.
Even after downloading the Validator 1.2.0. it still did not work with netscape4.79.
But this time it did not give me the previous error
message('form.getAttributeNode is not a function') , but did not perform client
side validation.
When I looked into it and debugged, I came to know that in
validateRequired(form) method of validateRequired.js
in one of the if statement it was checking if (field.disabled==false). But it
was receiving the value as 'undefined' from the application. So that's the
reason it could not perform the validation and did not show the client side
validation error message.
So could you please throw some light on how to fix it.

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org