<span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(51, 51, 51)">Hello list,<br clear="all"><br>I am trying to add support for the <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">jQuery</span> <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span> plugin (<a href="http://github.com/tkyk/jquery-history-plugin" style="color:rgb(51, 51, 51)" target="_blank">http://github.com/tkyk/<span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">jquery</span>-<span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span>-plugin</a>) to Seaside. The API of the plugin looks pretty simple but I don&#39;t know how to integrate it with the Seaside <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">jQuery</span> support.<br>

<br>In the onLoad on ready function you should register a callback function using $.<span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span>.init(callback). This callback function gets called with a url hash value as an argument. This function should get the new content from the server using an AJAX request.<br>

<br><font size="2">For the AJAX links on your page that should be bookmarkable and should support the backbutton you must use the $.<span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span>.load(&#39;#some_anchor&#39;) function.<br>

<br>In Seaside this should look something like:<br><br>    html anchor <br>        onClick: (html <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">jQuery</span> <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span> load: &#39;#link1&#39;);<br>

        with: &#39;Link 1&#39;.<br><br>And the init function can be called as part of the onLoad scripts:<br><br>    html document addLoadScript: <br>        (html <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">jQuery</span> <span style="background-color:rgb(181, 220, 249);color:rgb(34, 34, 34);background-repeat:initial initial">history</span> init: [ :anchor | self updateUsingAnchor: anchor ])<br>

<br>This second fragment is probably totally wrong. The update method needs something to render on. Can anybody push me in the right direction?<br><br>Jan.</font></span>