At 08:33 AM 3/10/99 -0600, you 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>";

Tom,

It looks like your end comment tag is inside a literal.

Bob

___________________________________________________________________________
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