<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Georgia">Hi,<br>
<br>
I'm trying to figure out how to use #replaceWith:. After many
permutations, still no-go. :-(<br>
<br>
I want to render 2 divs. When the first is clicked, I want to
replace the second with something else. Any suggestions?<br>
<br>
renderContentOn: html<br>
<br>
html div<br>
style: 'height: 44px; width: 65px; background-color:
red;';<br>
id: 'bob001';<br>
onClick: (html jQuery ajax html: [ :h |<br>
h render: ((h jQuery id: #bob002) replaceWith: Time
now asString).<br>
]);<br>
with: [html text: 'bob001'].<br>
html div<br>
style: 'height: 44px; width: 65px; background-color:
green;';<br>
id: 'bob002';<br>
with: [html text: 'bob002'].<br>
<br>
TIA,<br>
Bob<br>
</font>
</body>
</html>