You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/11/29 11:17:30 UTC

DO NOT REPLY [Bug 37685] New: - Javascript tag does not work on Mozilla

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

           Summary: Javascript tag does not work on Mozilla
           Product: Struts
           Version: 1.2.8
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Custom Tags
        AssignedTo: dev@struts.apache.org
        ReportedBy: p.mouawad@ubik-ingenierie.com


To checks that validation succeeded, 
org.apache.struts.taglib.html.JavascriptValidatorTag writes this code:
"return (formValidationResult == 1);"
But on Mozilla 1.7.11, this return false if formValidationResult  == true.
This code should be replaced by "return (formValidationResult === true);"
To check this try this code on different browsers:
<html>
	<head>
		<script language="Javascript1.2" >
			function test()
			{
				var test = (2==2) && (1 == 1);
				alert('test='+test);
				alert('test==1'+(test==1));
				alert('test===true'+(test===true));
			}
		</script>
	</head>
<body onload="test()">
<P>Here</P>
</body>
</html>

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