this is just a basic menu that I attach to a dynamically populated div. The div changes background-color on its mouseover event and I used the contextmenuhide event to change the class of the div back to a white background-color for the div.
it was working fine before, but when I changed it to CA 2009.1.. wierd enough it stopped working... the contextmenuhide stopped working
<code>
<ComponentArt:Menu id="divSectionMenu"
Orientation="Vertical"
ContextMenu="Custom"
DefaultGroupCssClass="MenuGroup"
SiteMapXmlFile="~/AuthoringSectionMenuFile.xml"
DefaultItemLookID="DefaultItemLook"
DefaultGroupItemSpacing="1"
ImagesBaseUrl="images/"
EnableViewState="false"
ExpandDelay="200"
runat="server">
<ClientEvents>
<ContextMenuHide EventHandler="tempFunction" />
<ItemSelect EventHandler="divSectionMenu_OnItemSelect" />
</ClientEvents>
<ItemLooks>
<ComponentArt:ItemLook LookID="DefaultItemLook" CssClass="MenuItem" HoverCssClass="MenuItemHover" ExpandedCssClass="MenuItemHover" LabelPaddingLeft="10" LabelPaddingRight="10" LabelPaddingTop="3" LabelPaddingBottom="4" />
<ComponentArt:ItemLook LookID="BreakItem" CssClass="MenuBreak" />
</ItemLooks>
</ComponentArt:Menu>
<script type="text/javascript">
function tempFunction()
{
//change the div background
if (divHighlighted != "")
OnMouseOut(document.getElementById(divHighlighted));
/*OnMouseOut is my method that changes the className of the div
does a little cleaning up work etc.. etc..*/
}
</script>
</code>
it's as simple as that.. I even changed the function to just do a simple alert("Hello world"). it wouldn't even work.. anobody have a clue on this?