<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16939" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi list, I need to add some javascript on the 
document head to achieve this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;script language="javascript" 
type="text/javascript"&gt;<BR>&nbsp;&nbsp;$(function() {<BR>&nbsp;&nbsp;&nbsp;$( 
"#example_2" 
).accessNews({&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; speed : 
"normal",<BR>&nbsp;&nbsp;&nbsp;slideBy : 1<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
});<BR>&nbsp;});<BR>&lt;/script&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I add the script on the updateRoot 
method:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Component &gt;&gt;updateRoot: 
aRoot<BR>&nbsp;<BR>&nbsp;super updateRoot: aRoot.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;aRoot javascript add: self 
example2Script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Component&gt;&gt;example2Script</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;^'$(function() {<BR>&nbsp;&nbsp;$( 
"#example_2" ).accessNews({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
speed : "normal",<BR>&nbsp;&nbsp;&nbsp;slideBy : 1<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
});<BR>&nbsp;});'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>but the problem is that Seaside by default, encodes 
this string with an HTML enconder, generating this string embeded on the 
document</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;script 
type="text/javascript"&gt;<BR>$(function() { <BR>&nbsp;&nbsp;&nbsp; $( 
&amp;quot;#example_2&amp;quot; ).accessNews({&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; speed : 
&amp;quot;normal&amp;quot;, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
slideBy : 1 <BR>&nbsp;&nbsp;&nbsp; }); <BR>&nbsp; 
});<BR>&lt;/script&gt;<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>where the $" are replaced by '&amp;quot' . And the 
script doesn't work!!.</FONT></DIV>
<DIV><FONT face=Arial size=2>I need to put the string without enconding. Which 
is the correct way to do it? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I do it by redefining a Seaside method, but I 
suppose there's some other clean solution.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have redefined this method:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>encodeOn: aDocument<BR>&nbsp;aDocument openTag: 
self tag attributes: attributes closed: self isClosed.<BR>&nbsp;self isClosed 
ifTrue: [ ^ self ].<BR>&nbsp;self childrenDo: [ :each | each encodeOn: aDocument 
].<BR>&nbsp;aDocument closeTag: self tag</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>WAScriptElement &gt;&gt; encodeOn: 
aDocument<BR>&nbsp;aDocument openTag: self tag attributes: attributes closed: 
self isClosed.<BR>&nbsp;self isClosed ifTrue: [ ^ self ].<BR>&nbsp;self 
childrenDo: [ :each | aDocument nextPutAll: each 
displayString].<BR>&nbsp;aDocument closeTag: self tag.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Sebastian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Calibri size=2><SPAN style="FONT-SIZE: 10pt">sebastian &nbsp;van 
lacke<B><SPAN style="FONT-WEIGHT: bold"> </SPAN></B>| developer<B><SPAN 
style="FONT-WEIGHT: bold"> </SPAN></B>|&nbsp; <B><FONT color=#1f497d><SPAN 
style="FONT-WEIGHT: bold; COLOR: rgb(31,73,125)">caesar systems</SPAN></FONT> 
</B>| <B><FONT color=#1f497d><SPAN 
style="FONT-WEIGHT: bold; COLOR: rgb(31,73,125)">see clearly. decide 
smarter.<?xml:namespace prefix = o 
/><o:p></o:p></SPAN></FONT></B></SPAN></FONT></DIV>
<DIV>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN style="FONT-SIZE: 11pt"><A 
href="mailto:svanlacke@caesarsystems.com"><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">svanlacke@caesarsystems.com</SPAN></FONT></A></SPAN></FONT><FONT 
size=2><SPAN style="FONT-SIZE: 10pt"> | t: +1.281.598.8790 | t: +54.11.4389.0126 
| </SPAN></FONT><A href="http://www.caesarsystems.com"><FONT size=2><SPAN 
style="FONT-SIZE: 10pt">www.caesarsystems.com</SPAN></FONT></A><FONT 
size=2><SPAN style="FONT-SIZE: 10pt">&nbsp;</SPAN></FONT><FONT 
face="Arial Narrow" size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial Narrow'"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><B><FONT face=Calibri color=navy size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy"></SPAN></FONT></B><FONT 
face="Arial Narrow" color=blue size=1><SPAN 
style="COLOR: navy"><o:p></o:p></SPAN><SPAN 
style="FONT-SIZE: 8pt; COLOR: blue; FONT-FAMILY: 'Arial Narrow'">This message 
and any attached documents contain information from Caesar Systems LLC that may 
be confidential/trade secret and/or privileged. If you are not the intended 
recipient, you may not read, copy, distribute or use this information. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by reply e-mail and then delete this 
message.</SPAN></FONT></P></DIV></BODY></HTML>