Re: struts and javascript document.write(...)

2002-07-11 Thread Virga
hi babs, you could also use 'innerHTML', but it will not work in 'not-so-dhtml' browser like netscape 4.7.x :-( e.g.: create a function to display the error message and call the function on your validation script. function displayError(theMessage) { document.getElementById('error').innerH

Re: struts and javascript document.write(...)

2002-07-11 Thread Barbara Post
thanks Adarsh, so what's the workaround to add some content with a javascript on a jsp ? Babs - Original Message - From: Adarsh <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 10:26 AM Subject: RE: struts and javascri

RE: struts and javascript document.write(...)

2002-07-11 Thread Adarsh
hi documnt.write always erase the contents and starts as new -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:05 PM To: [EMAIL PROTECTED] Subject: struts and javascript document.write(...) Hello, I am playing with this : http://www.mail-a