I am encountering an issue with Highslide where I am unable to reopen a popup with new content. Even though the contentId remains the same, the content is not being updated when the popup is reopened. Below is the code snippet that showcases the problem:
function doSomething() {
//Changes to fileExistList (removed for simplicity)
var newHTML = $('fileExistList').clone(true); //Cloning div as Highslide removes it
$(newHTML).id = 'fileExistList2'; //Change cloned divs id
$('fileExistList').insert({ //add cloned div to page
before: newHTML
});
hs.htmlExpand(null, { contentId: 'fileExistList2', align:'center' });
}
Although the initial call displays properly, subsequent calls only show the original popup content without any updates. It is worth mentioning that iframes are used for the Highslide popups.
If anyone has suggestions on how to modify this function so that it opens with the updated content, your insights would be greatly appreciated.
Thank you.