I've had the same problem before. The following code should work for returning the URL for a callback block:<br><br><br>>> callbackUrlFor: aBlock on: html<br> | updater callbackKey url |                 <br> updater := html updater callback: aBlock.                 <br>
callbackKey := html callbacks registerAjaxCallback: [updater process]. <br> url := html context actionUrl withParameter: callbackKey. <br> ^ url<br><br><p>Then you can use it in your render like this....</p><p></p><p>>> renderContentOn: html <br>
</p><p>| callbackUrl |</p><p>callbackUrl := self callbackUrlFor: [:r | r text: 'Example!' ] on: html.</p><p>html anchor class: 'jTip'; id: 'element-id'; url: callbackUrl; with: 'Mouse over for tooltip'.</p>
<br clear="all"><br>-- <br>-------<br>K. Sackey<br><p>Cloud Nine
</p><p></p><p></p><p></p><p></p><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>I'm porting an app to seaside that is using jTip<br>(<a href="http://www.codylindley.com/blogstuff/js/jtip/">http://www.codylindley.com/blogstuff/js/jtip/</a>) to handle tooltips.<br>
jTip works on links like the one below<br><br><a id="element-id" class="jTip" href="/callback-url?width=450">Mouse<br>over for tooltip</a><br><br>where callback-url will return the html to render as the tooltip. How<br>
do I generate the callback-url?<br><br>Searching the archives, the closest I could find was a snippet like:<br><br>html updater<br> callback: [ :r | r render: 'bar' ];<br> url.<br><br>However, this just evaluates to <a href="http://localhost:8080/seaside/myapp">http://localhost:8080/seaside/myapp</a><br>
<br>Any help would be appreciated.<br><br>Thanks,<br>Wilkes<br><br></blockquote>