<div>I want&nbsp;to create a javascript inside the head section</div>
<div>without doing a callback.</div>
<div>&nbsp;</div>
<div>I tried the following code:</div>
<div>&nbsp;anHtmlRoot javascript add: &#39;function test() {.....}&#39;</div>
<div>&nbsp;</div>
<div>The problem is, that in this case the javascript will be also encoded and this </div>
<div>breaks my javascript code.</div>
<div>&nbsp;</div>
<div>The&nbsp;only solution i found up to now, is to override the encodeOn: method in WAScriptElement</div>
<div>&nbsp;</div>
<div>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].<br>&nbsp;aDocument closeTag: self tag</div>

<div>&nbsp;</div>
<div>btw: i am using seaside 2.9</div>
<div>&nbsp;</div>
<div>cheers Gerhard</div>
<div>&nbsp;</div>
<div>&nbsp;</div>