Add a new line character after "old browsers". I think the next line is being
read as a comment by the browser.


Tom Kochanowicz wrote:

>     I have embedded some javascript into my servlet. The script works
> fine, but when I add the code to prevent old browsers from seeing the
> javascript it does not work. Any Ideas?
> The code is below...Thanks
>
>  htmlBody += "<SCRIPT LANGUAGE=\"JavaScript\"> <!-- Hide script from old
> browsers ";
>     htmlBody += " var submitted = false;";
>     htmlBody += " function doSubmit(form)";
>     htmlBody += " {";
>     htmlBody +=  " if (!submitted) {";
>     htmlBody +=   " submitted = true;";
>     htmlBody +=   " form.submit();";
>     htmlBody +=  " }";
>     htmlBody += " }";
>     htmlBody += "// End hiding script from old browsers--></SCRIPT>";
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to