[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: : Problems with Javascript block / Netscape

Subject: Re: : Problems with Javascript block / Netscape
From: "Jennifer Hochgesang" <jenniferh@xxxxxxxxxxxxxx>
Date: Thu, 16 Aug 2001 16:12:29 -0500
javascript block
You could try-

<xsl:text disable-output-escaping="yes">&lt;</xsl:text>



----- Original Message -----
From: "Chuck Evans" <chuck.evans@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, August 16, 2001 4:04 PM
Subject: RE:  : Problems with Javascript block / Netscape


> I'm a beginner with XSL, but when I had this problem, what I did was to
> include the javascript from a linked file instead of placing it directly
in
> the XSL:
>
> <SCRIPT LANGUAGE="JavaScript1.2" SRC="/pathtothejsfiles/file.js"
> TYPE='text/javascript'></SCRIPT>
>
> Chuck Evans
> Webmaster
> Click2learn, Inc.
>
> -----Original Message-----
> From: Uronis, Jeremy [mailto:Jeremy.Uronis@xxxxxxxxxxxxx]
>
> I have some JavaScript in my XSL. (example below)
> This works fine with IE, but not with Netscape.
> The problem is that for instance this line here
>
>   for(i = 0; i < numAvail; i++){
>
> gets converted into this
>
>   for(i = 0; i &lt; numAvail; i++){
>
> IE can handle the change from "<" to "&lt;",
> but NS can't. Is there anyway to output
> these symbols in regular form?
>
> Thanks -
>   Jeremy Uronis
>
> <script language="javascript" defer="true">
> <![CDATA[
>
> function AddClick(){
>
> var numAvail    =
> document.forms[0].lstAvailableCats.length;
> var numSelected =
> document.forms[0].lstSelectedCats.length;
> var i,j,C=0,D="",E="";
> var F,G,k;
>
> for(i = 0; i < numAvail; i++){
>
>
> if(document.forms[0].lstAvailableCats.options[i].selected==true){
>
> document.forms[0].lstAvailableCats.options[i].selected=false;
> if(C > 0){
> D += ",";
> E += ",";
> }
>
> E +=
> document.forms[0].lstAvailableCats.options[i].text;
> D +=
> document.forms[0].lstAvailableCats.options[i].value;
> C++;
>
> }
> }
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.