You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/01/29 21:32:03 UTC
DO NOT REPLY [Bug 41491] New: - javascript error when I use tomcat 4.1.29 and working fime with tomcat 4.03
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=41491>.
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=41491
Summary: javascript error when I use tomcat 4.1.29 and working
fime with tomcat 4.03
Product: Tomcat 4
Version: 4.1.29
Platform: Other
OS/Version: Windows 2000
Status: NEW
Severity: critical
Priority: P2
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: c.hari@yahoo.com
Hi,
I have a strange problem.
I am enabling a text box on selecting a dropdown.
It works fine when I run the application on tomcat 4.0.3, but when I deploy the
application on tomcat 4.1.29 and 5.0 The text box doesn't get enabled and gives
a java script error saying syntax error an the line it shows which has error
is :
document.forma.f_801.className='';
My code looks like this:
if(document.forma.f_800.options[document.forma.f_800.selectedIndex].value=='8')
{
alert('Please select reason for Hold!!');
document.forma.f_801.disabled=false;
document.forma.f_801.className='';
document.forma.f_801.focus();
document.all.id_801.style.cssText='background-image:url
(required.gif); background-position:top right; background-repeat:no-repeat;';
document.forma.f_2163.disabled=false;
document.forma.f_2163.className='';
...........etc
Why is not working on tomcat 4.1 and above and no problem in lower version.
Please let me know the solution.
Thanks
Hari
--
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@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41491] - javascript error when I use tomcat 4.1.29 and working fime with tomcat 4.03
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=41491>.
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=41491
c.hari@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
------- Additional Comments From c.hari@yahoo.com 2007-01-30 07:56 -------
Thanks for your response.
Intially I thought its a clinet side problem.
But strangely it works in 4.0.3 and gives javascript error when deployed on
4.1.29 and 5.0.
The javascript code is within a jsp.
When I remove the line of code at where the browser says java script error, then
the error shows on the next line nad it goes on...
I felt its very strange.
The java script error is:
Line: 1062
char:9
Error: Syntax Error
Code: 0
The code in my programme is:
if(document.forma.f_800.options[document.forma.f_800.selectedIndex].value=='8') {
alert('Please select reason for Hold!!');
document.forma.f_801.disabled=false;
document.forma.f_801.className='';
document.forma.f_801.focus();
document.all.id_801.style.cssText='background-image:url(required.gif);
background-position:top right; background-repeat:no-repeat;';
document.forma.f_2163.disabled=false;
document.forma.f_2163.className='';
document.all.id_2163.style.cssText='background-image:url(required.gif);
background-position:top right; background-repeat:no-repeat;';
//alert(getFutureDate(new Date(new
Date().getTime()+21*24*60*60*1000)));
if((document.forma.f_2163.value=='') ||
(document.forma.f_2163.value=='NULL')) {
document.forma.f_2163.value=getFutureDate(new Date(new
Date().getTime()+21*24*60*60*1000)); // 3 weeks from now;
}
document.all.id_2160.style.cssText='';
document.all.id_2161.style.cssText='';
document.all.id_2162.style.cssText='';
document.forma.f_801.options.length = 0;
document.forma.f_801.options[0] = new Option('-->select<--',
'', false, false);
document.forma.f_801.options[1] = new Option('Waiting for
Customer', '530', false, false);
document.forma.f_801.options[2] = new Option('Waiting for
Technical Resolution', '531', false, false);
document.forma.f_801.options[3] = new Option('EVPN
Engagement', '532', false, false);
document.forma.f_801.options[4] = new Option('Waiting for
Process Resolution', '533', false, false);
document.forma.f_801.options[5] = new Option('Other', '534',
false, false);
document.all.f_2163_span.style.visibility='visible';
document.all.id_3062.style.cssText='';
//document.forma.f_3064.checked=false;
}
--
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@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41491] - javascript error when I use tomcat 4.1.29 and working fime with tomcat 4.03
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=41491>.
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=41491
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From markt@apache.org 2007-01-29 20:27 -------
Javascript is a purely client side technology so I would be very surprised if
this was a Tomcat issue. To be sure, i tried the following which works as
expected, without any error.
<html>
<head>
<title>Bug 41491</title>
<script type="text/javascript">
function testEnable() {
if(document.form1.combobox1.options[document.form1.combobox1.selectedIndex].value=='Three')
{
alert("Add extra text")
document.form1.text1.disabled=false
document.form1.text1.classname=''
}
}
</script>
</head>
<body>
<form name="form1">
<select name="combobox1" onchange="testEnable()">
<option value="One">One</option>
<option value="Two">Two</option>
<option value="Three">Three</option>
</select>
<br />
<input type="text" name="text1" disabled="disabled" />
</form>
</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@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41491] - javascript error when I use tomcat 4.1.29 and working fime with tomcat 4.03
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=41491>.
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=41491
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
------- Additional Comments From markt@apache.org 2007-01-30 16:12 -------
Then the actual error is probably elsewhere on the page.
Please do not re-open this bug unless you can provide a test case (probably a
JSP in this case) that conforms to all appropriate specifications but does not
work with Tomcat.
--
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@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org