Id of the image returned by R back to JS

LabKey Support Forum (Inactive)
Id of the image returned by R back to JS Leo Dashevskiy  2013-01-09 15:34
Status: Closed
 
Got it to work, though, through, what I would consider ugly, ugly hack.

Had to modify the default 'resultImage' id of the generated images by appending the web part's unique id to it, thus making them all unique.

Is it not bad practice, though, to have non-unique id's in an HTML document? So should the server instead perform this kind of appending?

Thanks.