Rank: Member Groups: Member
Joined: 4/15/2008 Posts: 13
|
Hello
I am trying to trigger the client-side Javascript function from a Menu1 item ( menu items derived from DataSet) ClientSideOnItemMouseOver event (similar to onmouseover effect?) The Javascript function is not triggered.
The development is done on Visual Studio.
I have moved the injected script from the body to the head section but still no joy. The server side code calling the function is in the code at the <eo:Menu section
Please advise.
See code below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Idler Selection Menu</title> </head>
<body> <form id="form1" runat="server"> <script language="javascript" type="text/javascript" > <!-- function displayPopup() { alert("Test"); } //--> </script> <div> </div>
<eo:Menu ID="Menu1" runat="server" ControlSkinID="None" Style="position: relative" Width="142px" KeepExpandedOnClick="True" ClientSideOnItemMouseOver="displayPopup()"> <LookItems>
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Your syntax is wrong. Please see here for more details: http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.htmlYou can also take a look of the samples and see what's the correct syntax. Thanks
|
Rank: Member Groups: Member
Joined: 4/15/2008 Posts: 13
|
:d/ Thanks ..... problem solved !:d/
|