Re: Updating Template Toolkit generated HTML content without page reload?

Michael Herger <slim-b/[email protected]> Tue, 3 May 2022 17:59:58 +0200
Newsgroups gmane.music.equipment.slimdevices.devel
Message-ID <[email protected]>
> Can this be done *without* a page *reload?*

Of course: JS can modify anything on that page.

> I didn't find anything in the Template Toolkit docs.

TT is server side. If you want to manipulate the page without a full 
page reload, you'll have to handle this in the browser, using JS.

> So more specifically: does LMS offer anything in this regard or do know
> you whether it's already used in LMS or some plugin?

LMS uses this all over the place. Eg. the status section top right is 
all dynamically updated.

 From your question I understand you're not familiar with "AJAX" etc.? 
Even less so with the framework we're using, ExtJS?...

It would probably be easiest to look into your existing JS code, the one 
which triggers the pref change. I could probably point you at examples 
of similar code in other places.