Re: Refload page on typing without losing focus?

Johan Brichau <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
That’s not really possible.

If you want to keep cursor position and keyboard focus etc… you can only do that by _not_ refreshing the input field itself.
i.e. use Ajax updates for the other elements you want to update…

cheers
Johan

> On 25 Mar 2019, at 20:27, Bernhard Pieber <[email protected]> wrote:
> 
> Hello,
> 
> 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.
> 
> 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:.
> 
> 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.
> 
> Is this possible somehow? Any help would be appreciated.
> 
> - Bernhard
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.