Mantis - Resin
Viewing Issue Advanced Details
98 minor always 04-12-05 00:00 04-18-05 00:00
user116  
 
normal  
closed 2.1.x  
2.1.x no change required  
none    
none  
0000098: Javascript form fields selection type NOT supported
RSN-89
Hi,

the following section of a javascript function is NOT supported in resin. The same however is supported in tomcat and JBoss.

var elementslength=document.form.elements.length;

for(var i=0;i<elementslength;i++)
{
alert ("1");
if(document.form(i).type =='text' || document.form(i).type=='textarea')
{
alert ("2");
document.form(i).value="";
  }
}

While running on resin "1" is printed but NOT "2". How do we handle the same in resin ?
Windows, jsp, resin + websphere

Notes
(0000103)
ferg   
04-12-05 00:00   
This bug report makes no sense. javascript is client side. So it doesn't make sense to say that it's not supported by Resin.
(0000104)
user116   
04-12-05 00:00   
Well, my apologies if I haven't been able to communicate effectively. The above snippet is from a javascript function which does whats its supposed to do ( ie refresh the form fields) in resin 2.1.x versions.

However, the same function behaves randomly under resin 3.1.x. Strangely, No one has found similar occurrances before.
(0000105)
user116   
04-12-05 00:00   
I posted it as a bug as i presume any newer version of a product MUST support applications deployed in pervious versions.
(0000106)
sam   
04-12-05 00:00   
Resin (or JBoss, or Tomcat) does not do anything with your
javascript. Javascript runs in the browser. As far as Resin (or
any other J2EE server) is concerned, your javascript is just some
text that is sent to the browser along with everything else.

Something to check is the source that is being received by the
browser (Use menu View | Page Source in Firefox, for example).
There may be something about your Resin configuration that is
causing the portion of the page that contains the javascript to
not be sent to the browser.