<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I try to figure out how this scriptaculous code works and I am not
getting the point.<br>
Here is the rendering code of the SUSortableTest :<br>
<blockquote> renderContentOn: html<br>
html paragraph: 'Drag and drop items to re-arrange!'.<br>
html div<br>
style: 'float: left;';<br>
with: [ self renderList: left named: 'left' titled: 'Left List'
on: html ].<br>
html div<br>
style: 'float: left;';<br>
with: [ self renderList: right named: 'right' titled: 'Right
List' on: html ]<br>
</blockquote>
It's easy to see what it produces but if I copy that code in one of my
class, Seaside is generating some 'with' tags in html source. And it is
normal because the WAHtmlRender doesn't understand the message #div and
#with:. So the #doesNotUnderstand: is invoked<br>
<blockquote>
<blockquote>doesNotUnderstand: aMessage<br>
| argCount |<br>
argCount _ aMessage arguments size.<br>
argCount = 0 ifTrue: [^ self tag: aMessage selector].<br>
argCount = 1 ifTrue: [^ self tag: aMessage selector allButLast do:
aMessage argument].<br>
^ super doesNotUnderstand: aMessage <br>
<br>
tag: aString<br>
self openTag: aString.<br>
self closeTag: aString.<br>
<br>
tag: aString do: anObject<br>
self openTag: aString.<br>
self render: anObject.<br>
self closeTag: aString.<br>
</blockquote>
</blockquote>
The results seems normal to me. So my question is : how is working the
sciptaculous code ?<br>
<br>
Paco<br>
</body>
</html>