p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   error in JS code (http://p2p.wrox.com/showthread.php?t=42335)

austinf May 10th, 2006 01:10 AM

error in JS code
 
hi i have written the following javascript code in an xsl
Code:

for(var i = 0; i < 3 ; i++) {
 alert(i);
}

i get the following error "Expected )"

i know it is because of the ; of < but i cannot use the symbol in xsl

thanks


joefawcett May 10th, 2006 02:19 AM

Put your function definitions and code in a CDATA section, you can then use "real" JavaScript and not worry about special characters.

--

Joe (Microsoft MVP - XML)

austinf May 10th, 2006 03:42 AM

hi i did that and it gives me the same error

i have noticed that when the xsl is applied the "<" symbol will be
converted to "&lt;"

can u please help

Thanks



All times are GMT -4. The time now is 09:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.