Solved the problem outlined in the previous post by using generate-id(). The retrieval of entries for a particular gloss takes place only once now; after that, the same <div> is shown or hidden.
This entry was posted by Martin and filed under Activity log.