Re: Updating Template Toolkit generated HTML content without page reload?
AF1 <AF1.ajwo1z-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Wed, 4 May 2022 14:59:21 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
mherger wrote: > > The html page (with the JS code) is 'here' > > > (https://github.com/AF-1/lms-visualstatistics/blob/main/VisualStatistics/HTML/EN/plugins/VisualStatistics/html/list.html). > > If you select a different virtual library at the top, it'll set the > pref > > value to the VL id (needed for the SQLite queries) and -reload- the > page > > to -update the genre + decade list- - which is what I'd like to > change, > > if possible. > > Ok, I guess that you need to replace the window.location.href > instrucation around line 1122 with the code to update your page. What > element on that page did you want to update? I'd have to get the updated genre list (line 917) and decade list (line 924) from the server for these 2 select elements. '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