<% %> blocks are for java scriptlets. Client side source like javascript
should not be in these blocks.
> -----Original Message-----
> From: Vyas Vemu [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, October 30, 1999 6:12 AM
> To: [EMAIL PROTECTED]
> Subject: Help with Javascript includes:URGENT response solicited!!!
>
> My HTML page has a javascript include as follows:
>
> <SCRIPT Language="JavaScript" SRC="/jslib/validation.js">
> alert("Unable to load script file: validationPage.js");
> </SCRIPT>
> ....
>
> When I converted the same HTML to a JSP, I scripted these lines as
> follows:
>
> <%= "<SCRIPT Language='JavaScript' SRC='/jslib/validation.js'>" %>
> <%= "alert('Unable to load script file: validationPage.js');" %>
> <%= "</SCRIPT>" %>
>
> However, the subsequent HTML after being rendered by the JSP doesnot
> seem to know about the javascript source file. I came to this
> conclusion because all my calls to functions in the validation.js"
> were treated as invalid and not declared/defined.
>
> Can I please get help with this problem?
>
> Vyas Vemu
>
> PS: Earlier I tried all sorts of tricks discussed in this SIG such as
> these, but the JSPs did not even compile.
> I am running my app. on JavaWebServer2.0
>
> 1. <SCR<%= "I" %>PT Language="JavaScript" .......>
>
> 2. included a RUNAT="CLIENT" attribute to the script tag.
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
Re: Help with Javascript includes:URGENT response solicited!!!
Esposito, Francis (Exchange) Sat, 30 Oct 1999 11:17:47 -0700
- Help with Javascript includes:URGENT response... Vyas Vemu
- Esposito, Francis (Exchange)
