Updating Template Toolkit generated HTML content without page reload?

AF1 <AF1.ajutun-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Tue, 3 May 2022 15:09:38 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
Hi.

I have an html page that includes content generated with the Template
Toolkit. Here's an example:

Code:
--------------------
    <select name="genreselect" id="genreselect">
  	[% FOREACH genre = librarygenres %]
  		<option value="[% genre.id %]" [% IF genre.id == genreselect %]selected='selected' [% END %]>[% genre.name %]</option>
  	[% END %]
  </select>
  
--------------------


I need to update this content if a JS script changes a param/pref value
(because the genrelist (librarygenres) changes).
Right now I just reload the page - which works but it's not 'nice'.

Can this be done *without* a page *reload?*
I didn't find anything in the Template Toolkit docs. 
So more specifically: does LMS offer anything in this regard or do know
you whether it's already used in LMS or some plugin?

Thank you.



'Ratings Light FAQ' (https://github.com/AF-1/lms-ratingslight) ••••
'Dynamic Playlists 3 FAQ'
(https://github.com/AF-1/lms-dynamicplaylists#faq) •••• '*other
plugins*' (https://github.com/AF-1/all-repos-and-links)
------------------------------------------------------------------------
AF1's Profile: http://forums.slimdevices.com/member.php?userid=39306
View this thread: http://forums.slimdevices.com/showthread.php?t=116339

_______________________________________________
developers mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/developers