<!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> </DIV>
<DIV><FONT face=Arial size=2><script language="javascript"
type="text/javascript"><BR> $(function() {<BR> $(
"#example_2"
).accessNews({ <BR> speed :
"normal",<BR> slideBy : 1<BR>
});<BR> });<BR></script></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I add the script on the updateRoot
method:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Component >>updateRoot:
aRoot<BR> <BR> super updateRoot: aRoot.</FONT></DIV>
<DIV><FONT face=Arial size=2> aRoot javascript add: self
example2Script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Component>>example2Script</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> ^'$(function() {<BR> $(
"#example_2" ).accessNews({<BR>
speed : "normal",<BR> slideBy : 1<BR>
});<BR> });'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2><script
type="text/javascript"><BR>$(function() { <BR> $(
&quot;#example_2&quot; ).accessNews({
<BR> speed :
&quot;normal&quot;, <BR>
slideBy : 1 <BR> }); <BR>
});<BR></script><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>where the $" are replaced by '&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> </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> </DIV>
<DIV><FONT face=Arial size=2>encodeOn: aDocument<BR> aDocument openTag:
self tag attributes: attributes closed: self isClosed.<BR> self isClosed
ifTrue: [ ^ self ].<BR> self childrenDo: [ :each | each encodeOn: aDocument
].<BR> aDocument closeTag: self tag</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>WAScriptElement >> encodeOn:
aDocument<BR> aDocument openTag: self tag attributes: attributes closed:
self isClosed.<BR> self isClosed ifTrue: [ ^ self ].<BR> self
childrenDo: [ :each | aDocument nextPutAll: each
displayString].<BR> aDocument closeTag: self tag.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sebastian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Calibri size=2><SPAN style="FONT-SIZE: 10pt">sebastian van
lacke<B><SPAN style="FONT-WEIGHT: bold"> </SPAN></B>| developer<B><SPAN
style="FONT-WEIGHT: bold"> </SPAN></B>| <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"> </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>