You might take a look at <a href="http://www.lukas-renggli.ch/blog/ajaxification?_s=jMUTD9qfTpGmftem&amp;_k=06VFYynf&amp;_n&amp;47">http://www.lukas-renggli.ch/blog/ajaxification?_s=jMUTD9qfTpGmftem&amp;_k=06VFYynf&amp;_n&amp;47</a> I haven&#39;t tried it yet but it comes from a reliable source. There is an FAQ about it <a href="http://www.lukas-renggli.ch/blog?_s=jMUTD9qfTpGmftem&amp;_k=kR5-V9Ie">here</a><br>
<br><div class="gmail_quote">On Wed, Mar 25, 2009 at 9:43 AM, Chun, Sungjin <span dir="ltr">&lt;<a href="mailto:chunsj@embian.com">chunsj@embian.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What I&#39;ve used for this kind of problem is save the scroll position to the cookie(not the<br>
anchor label but the &quot;real scrollbar position&quot; using Javascript).<div><div></div><div class="h5"><br>
<br>
<br>
On Mar 25, 2009, at 6:25 PM, Hilaire Fernandes wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
I try to see the difference facet of the problem regarding mix use of<br>
composition and the scroll problem. May be my view is partial because I<br>
don&#39;t know much javascript, but here it goes:<br>
<br>
So far, I see mainly 3 concomitant issues:<br>
<br>
1. when you call a sub component, the canvas scrolls back to the top<br>
<br>
2. when you return from a sub component, the canvas scrolls back to the<br>
top<br>
<br>
3. when you click a link with a callback changing the state of the<br>
canvas, it scrolls back to the top<br>
<br>
Regarding the history of the comments in this mailing list, I see the<br>
problem can be solved using anchor.<br>
<br>
But the problem is far to be optimal as it breaks reusability of the<br>
component.<br>
<br>
For issue #1, I try with a special Anchor decoration, with this render<br>
method:<br>
renderContentOn: html<br>
        html anchor<br>
                name: anchor;<br>
                script: (SUScript new goto: &#39;#&#39;, anchor).       <br>
        html text: &#39;&#39;.<br>
        self renderOwnerOn: html.<br>
<br>
Don&#39;t ask me why the html text: &#39;&#39;, otherwise the anchor is rendered<br>
toward the end of the component (is it because the component has the<br>
Form decoration?).<br>
<br>
The decoration does not solve entirely reusability because the #answer<br>
message in the sub component is out of the reach of the decoration. So<br>
you still need to subclass component to get the scroll back issue #2<br>
fixed, for example I sub-class WAChoiceDialog to override method ok:<br>
ok<br>
        self session jumpToAnchor: anchor .<br>
        super ok<br>
<br>
Not nice<br>
<br>
<br>
For issue #3, it is quite simple:<br>
html anchor<br>
        callback: [attribute pushVersion: &#39;votre texte&#39;.<br>
                self session jumpToAnchor: self hash asString];<br>
        with: &#39;( + )&#39;.<br>
<br>
Any comments or additional ideas?<br>
<br>
Hilaire<br>
<br>
<br>
<br>
Le mardi 24 mars 2009 à 14:31 +0100, Hilaire Fernandes a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
Are there a well known pattern for seaside to deal with the browser<br>
scrolled page when using sub-component and callback?<br>
</blockquote>
<br></div></div>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br>