AnsweredAssumed Answered

Pbd1 + VBScript # Do not work method

Question asked by Nikolay on May 13, 2015
Latest reply on May 18, 2015 by dng

Can't override the Click method. How to do it?



<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true"

    CodeBehind="Default.aspx.cs" Inherits="testactiveviewaspnet._Default" %>


<head id="Head1" runat="server">


    <script language="vbscript" type="text/vbscript">

        Sub Pbd1_ReadyStateChange(nReadyState)

          Dim dsp

          set dsp=Document.GetElementById("Pbd1")


          AddHandler dsp.Click, New EDisplay_ClickEventHandler(AddressOf MyDisplay_Click)


        End Sub



       Sub MyDisplay_Click(ByVal lvarX as Integer, ByVal lvarY as Integer)

          Alert "Hello"

       End Sub






        PI ActiveView with VBScript



        <object ID="Pbd1"




   <param name = "DisplayUrl" value="http://localhost:26657/Trend.pdi"/>

        </object><br />