[Seaside] Problem with WAScriptTag content escaping,
when nestedinto a WAScriptTag
renggli at gmail.com
Fri Oct 17 06:18:25 UTC 2008
> I concluded for now that rendering <script> tags with SUElemet >>
> update: is to be avoided.
Try to avoid inline script-tags at all cost. In addition to the
problems you observed, inline scripts are executed _while the page is
loading_ and might cause errors because the DOM tree hasn't been
loaded completely. See the shipped example code, nobody is creating
<script> tags like this.
I might have missed something in the thread, but I don't really
understand what you are trying to do with your example. Why do you
need the div tag at all?
Anyway, to get a message on page load you can write:
Or to manipulate the DOM of a particular element write:
html div script: (html element update: [ :r | r text: 'Hello' ])
Best of all, you don't even need to think of unique IDs here.
More information about the seaside