This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

: Problems with Javascript block / Netscape


Hello-

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]