<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Georgia">You *can* re-render just a row or even just a
cell. I use the following to re-render a single cell:<br>
<br>
s1 _ html jQuery ajax<br>
callback: [ :value |<br>
value = 'undefined' ifTrue: [<br>
lastCellIndex _ nil.<br>
] ifFalse: [<br>
lastCellIndex _ value.<br>
showing at: lastCellIndex put: (showing at:
lastCellIndex ifAbsent: [false]) not.<br>
].<br>
]<br>
value: (((html jQuery: '.',idForExpandableSource) filter:
'return(bobclicktest(this))' asFunction) first attributeAt: 'id');<br>
<br>
script: [ :s | <br>
lastCellIndex ifNotNil: [<br>
self updateHistory.<br>
s << ((s jQuery: lastCellIndex asSymbol)
html: [ :h | <br>
cellInfo _ (idsToCells at: lastCellIndex)
third.<br>
(showing at: lastCellIndex) ifTrue: [<br>
toShow _ String streamContents: [ :strm |<br>
cellInfo sourceArray do: [ :e | <br>
strm <br>
nextPutAll: e first asString;<br>
nextPutAll: '>>';<br>
nextPutAll: e second asString;<br>
cr;<br>
nextPutAll: e third asString;<br>
cr; cr<br>
]<br>
].<br>
h text: '[x]'; break.<br>
h textArea columns: 50; rows: 20; style:
'text-align: left'; value: toShow.<br>
] ifFalse: [<br>
h text: cellInfo byteCount asString<br>
].<br>
]).<br>
].<br>
].<br>
<br>
You can see this in action at <a class="moz-txt-link-freetext" href="http://69.251.218.6:9116/time">http://69.251.218.6:9116/time</a> if you
click on a cell with something in it.<br>
<br>
Cheers,<br>
Bob<br>
</font><br>
<font face="Georgia">jQuery: '#tableContainer'<br>
<br>
</font>
<div class="moz-cite-prefix">On 12/20/13 4:15 PM, Mariano Martinez
Peck wrote:<br>
</div>
<blockquote
cite="mid:CAA+-=mXwOaHUugpOFFsq6ktKGUOp5UOKFNN9puEn08qKUOAkBA@mail.gmail.com"
type="cite">
<div>
<div>renderCellFormContent: anObject on: html</div>
<div><br>
</div>
<div><span class="" style="white-space:pre"> </span>html form:
[</div>
<div><span class="" style="white-space:pre"> </span>html
label:[<span class="" style="white-space:pre"> </span></div>
<div><span class="" style="white-space:pre"> </span>html
checkbox</div>
<div><span class="" style="white-space:pre"> </span>value:
(self isSelected: anObject);</div>
<div><span class="" style="white-space:pre"> </span>onClick:
(html jQuery ajax </div>
<div><span class="" style="white-space:pre"> </span>serializeThisWithHidden;</div>
<div><span class="" style="white-space:pre"> </span>html: [
:renderer | self halt. renderer render: self report ]</div>
<div><span class="" style="white-space:pre"> </span>"onSuccess:
((html jQuery: '#tableContainer') load)");</div>
<div><span class="" style="white-space:pre"> </span>callback: [
:value | self selectRow: anObject value: value ]]]</div>
<div><span class="" style="white-space:pre"> </span></div>
</div>
<div><span class="" style="white-space:pre">But none worked. I am
still newbie with Ajax stuff so I am probably doing something
wrong.</span></div>
<div><span class="" style="white-space:pre">BTW, if I can only
refresh the row, cool, but as far as I know that's not
possible (or complex?). So just rendering the table again I
think it would be ok (unless I loose scroll position).</span></div>
<div><span class="" style="white-space:pre"><br>
</span></div>
</blockquote>
<br>
</body>
</html>