[Seaside] Issue with JSScript code generated in a render
renggli at gmail.com
Fri Mar 5 06:11:46 UTC 2010
> FIrst issue after loading the JS-Core-lr.84 was :-
> Message not Understood -> Duration >> asDuration
> Then I get a :-
> MessageNotUnderstood: WAHtmlDocument>>scriptGenerator
The code depends on all the latest Seaside packages. Also you need to
flush the configuration packages and re-register all applications. If
you don't want to go through that procedure you can replace JSStream
class>>#encodeString:on: with the following code. That should also
work in older images:
JSStream class>>#encodeString: aString on: aStream
| char value encoded last |
aStream nextPut: $".
1 to: aString size do: [ :index |
char := aString at: index.
value := char greaseInteger.
ifFalse: [ aStream nextPut: char ]
ifTrue: [ aStream nextPutAll: encoded ]
"avoid that browsers mistakenly take the output as a closing tag"
(last = $< and: [ char = $/ ])
ifTrue: [ aStream nextPutAll: '\/' ]
ifFalse: [ aStream nextPut: encoded ] ] ].
last := char ].
aStream nextPut: $"
More information about the seaside