Welcome Guest Search | Active Topics | Sign In | Register

ClientSideOnItemMouseOver not triggering Javascript function Options
Hans
Posted: Thursday, May 1, 2008 7:33:43 AM
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>
&nbsp;&nbsp;
</div>


<eo:Menu ID="Menu1" runat="server" ControlSkinID="None" Style="position: relative"
Width="142px" KeepExpandedOnClick="True" ClientSideOnItemMouseOver="displayPopup()">
<LookItems>
eo_support
Posted: Thursday, May 1, 2008 7:39:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

Your syntax is wrong. Please see here for more details:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

You can also take a look of the samples and see what's the correct syntax.

Thanks
Hans
Posted: Tuesday, May 6, 2008 12:47:36 PM
Rank: Member
Groups: Member

Joined: 4/15/2008
Posts: 13
:d/ Thanks ..... problem solved !:d/


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.