|
Hi, Everyone.
I have a problem Im writing a toolbar and my toolbar have event OnGotoLink here is code :
In .Net ActiveX control:
Sub OnButtonClick(ByVal sender As Object, ByVal e As EventArgs) Dim lMenu As CSLMenuItem lMenu = CType(sender, CSLMenuItem) 'MsgBox(lMenu.Url) RaiseEvent OnGotoLink(lMenu.Url, lMenu.Target) End Sub
and on my client I have ebent javascript handler:
<SCRIPT FOR="tbrMain2" EVENT="GotoUrl"> alert('hello'); </SCRIPT>
<OBJECT id="tbrMain" name="tbrMain2" style="WIDTH: 100%; HEIGHT: 40px" height="40" width="100%" classid="http://DEV/NitroControls/NitroControls.dll#NitroControls.MenuBar" VIEWASTEXT> <PARAM NAME="WebServicePath" VALUE="http://dev/wfews/menu.asmx"> <PARAM NAME="UserID" VALUE="292"> <PARAM NAME="BackColor" VALUE="DarkGrey"> </OBJECT>
now how come it doesnt want to trigger? I know it calls message box in OnButtonClick, but it doesn't come throght to the client.
Regards, Dmitri. |