Struts2 ajax textarea not working with prototype.js on IE8
Kitt Lee
Greenhorn
Joined: Sep 01, 2010
Posts: 2
posted
0
hi all,
I have this strange error whereby on IE8, the ajax textarea doesn't show up properly when prototype.js is included on the same JSP.
Firefox works fine though. Anyone has encountered this before and any solution?
I'm using struts2 2.0.11 and prototype.js 1.4.0 written by Sam Stephenson <sam@conio.net>.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
Doesn't surprise me; Prototype interacts poorly with other JavaScript libraries sometimes. Try changing the order of the JavaScript includes.
Kitt Lee
Greenhorn
Joined: Sep 01, 2010
Posts: 2
posted
0
Thanks David for replying.
There is only one js include on my JSP which is included inside head and that prototype function will only be triggered by the body onload (which the form has finished loaded). However for some reasons, the ajax textarea provided from struts2 doesn't work if that prototype function is called upon body onload.
Any further advise is much appreciated.
Jijo Lawrence
Greenhorn
Joined: Nov 16, 2010
Posts: 1
posted
0
Hi,
Try putting "id" attribute also for the textarea.
subject: Struts2 ajax textarea not working with prototype.js on IE8