I'm trying to do the same thing Daniel Moth did in his great video but can't get the onclick to work. I get the onmouseover to work, but onclick just acts as if it's not there. here is the javascript and html causing me the grief. any ideas
Peter Kellner
http://peterkellner.net
ASP.NET, MVP
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript">
function setupgadget()
{
//machName.innerHTML = System.Environment.machineName;
//<span id="gadgetcontent"><span id="machName">Not running in Sidebar!</span>
}
function toggleFlyout()
{
//System.Gadget.Flyout.show = true;
//Sytem.Shell.execute("notepad");
//System.Sound.beep();
}
function doBeep()
{
System.Gadget.Flyout.show = true;
//System.Sound.beep();
}
System.Gadget.settingsUI = "mySettings.html";
System.Gadget.Flyout.file = "VistaPartyDetails.html"
</script>
<head>
<title>Vista Party 2007</title>
<style type="text/css">
body{
width:130;
height:260;
}
span{
font-family: Tahoma;
font-size: 12pt;
}
</style>
</head>
<body onload="setupgadget();">
<h1 style="margin: 0; color: #d85d5d; font-size: 1.5em; letter-spacing: -1px; text-align: center;">
Vista<br />Party</h1>
<h2 style="margin: 0; color: #808080; font-weight: normal; font-size: 1em; letter-spacing: -1px;
text-align: center;">
Vista's Release - 2007</h2>
<br />
<b>Registered: xxx</b>
<b>Sessions: yyy</b>
<a href="" onmouseover="doBeep();" onclick="toggleFlyout();">Show Details</a>
</body>
</html>

Problem with onClick in simple gadget
Demonslayer
I'd wrap everything in "try/catch" to pin it down.