User 35f81bd810
03-10-2007 13:28:20
MarvinSpace (IE 6.0)
How do you control the visibility of individual small molecules within the MarvinSpace applet? After loading the file, I can make them all visible or invisible using a javascript function like
function hideMol()
{
document.MSpaceApplet.setProperty("Ligand.Visible" , "false" );
}
but I want to be able to cherry-pick which molecules are visible. I've been blindly trying things like
function hideMol()
{
document.MSpaceApplet.setProperty("Ligand[1].Visible" , "false" );
document.MSpaceApplet.setProperty("Ligand(1).Visible" , "false" );
}
without success. I also couldn't figure out how to translate the log file commands for doing this from the MarvinSpace application to the applet.
If it is to be done, it has to be within the framework of html/javascript as it has to be coordinated with other types of views and data presentations on the same page, and I don't have the luxury of redesigning the service.
Thanks.
How do you control the visibility of individual small molecules within the MarvinSpace applet? After loading the file, I can make them all visible or invisible using a javascript function like
function hideMol()
{
document.MSpaceApplet.setProperty("Ligand.Visible" , "false" );
}
but I want to be able to cherry-pick which molecules are visible. I've been blindly trying things like
function hideMol()
{
document.MSpaceApplet.setProperty("Ligand[1].Visible" , "false" );
document.MSpaceApplet.setProperty("Ligand(1).Visible" , "false" );
}
without success. I also couldn't figure out how to translate the log file commands for doing this from the MarvinSpace application to the applet.
If it is to be done, it has to be within the framework of html/javascript as it has to be coordinated with other types of views and data presentations on the same page, and I don't have the luxury of redesigning the service.
Thanks.