<html><head></head><body><div class="ydp4765fb52yahoo-style-wrap" style="font-family:lucida console, sans-serif;font-size:13px;"><div></div>
        <div>We do refresh onBlur, so having the user's focus on the widget they selected after the onBlur + refresh was needed. When a widget gets focus we set a global value <span>onFocusWidgetId to the widget id. The on the refresh we include a load script that checks for a non-null <span>onFocusWidgetId value which is not equal to <span>document.activeElement.id and sets it using <span>document.getElementById(onFocusWidgetId).focus(); ... similar logic is used to set the cursor position within an input field, otherwise the cursor is set to the start of the field, even if a user clicked elsewhere. </span></span></span></span></div><div><span><span><span><span><br></span></span></span></span></div><div><span><span><span><span>Bob </span></span></span></span></div><div><span><span><span><span><br></span></span></span></span></div><div><br></div>
        
        </div><div id="yahoo_quoted_3628790033" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, March 25, 2019, 4:42:34 p.m. EDT, Johan Brichau <johan@inceptive.be> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">That’s not really possible.<br clear="none"><br clear="none">If you want to keep cursor position and keyboard focus etc… you can only do that by _not_ refreshing the input field itself.<br clear="none">i.e. use Ajax updates for the other elements you want to update…<br clear="none"><br clear="none">cheers<br clear="none">Johan<br clear="none"><br clear="none">> On 25 Mar 2019, at 20:27, Bernhard Pieber <<a shape="rect" ymailto="mailto:bernhard@pieber.com" href="mailto:bernhard@pieber.com">bernhard@pieber.com</a>> wrote:<br clear="none">> <br clear="none">> Hello,<br clear="none">> <br clear="none">> I managed to show a validation message beneath an input field of type text on every keypress using jQuery. In this case I knew exactly which DOM element to change.<br clear="none">> <br clear="none">> Now I would like to refresh the whole page on every keypress without having to know which DOM elements need changing. In the keypress callback I change some state and then I would like to rerender the page like it would when using renderContentOn:.<br clear="none">> <br clear="none">> I know how to trigger a page reload. However, the challenge is to keep editing the input field, i.e. the keyboard focus, the cursor position and the text selection.<br clear="none">> <br clear="none">> Is this possible somehow? Any help would be appreciated.<br clear="none">> <br clear="none">> - Bernhard<br clear="none">> _______________________________________________<br clear="none">> seaside mailing list<br clear="none">> <a shape="rect" ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br clear="none">> <a shape="rect" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><div class="yqt6858808041" id="yqtfd49127"><br clear="none"><br clear="none">_______________________________________________<br clear="none">seaside mailing list<br clear="none"><a shape="rect" ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br clear="none"><a shape="rect" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br clear="none"></div></div></div>
            </div>
        </div></body></html>