1 Reply Latest reply on Mar 31, 2017 7:25 PM by rsun

    how to call web procedure in activeview

    H001

      Dear all

       

      Currently, there is a website showing the pdi file on the Web.

      The left side shows pdi menu frame and center frame displays pdi file using activeview.

      when an object is clicked on the activeview , I want to call the web function on the left menu frame.

       

      show the below example

      --------------asp code start

       

      <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OpenTest.aspx.cs" Inherits="OpenTest" %>

      <!DOCTYPE html>

      <html xmlns="http://www.w3.org/1999/xhtml">
      <head runat="server">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
          <title>테스트 페이지</title>
          <script language="javascript">
              function fnEventCall(var0) {
                  alert(var0)
              }
            
        </script>
      </head>

          <body>
             <form id="form1" runat="server">
                  <object  id="Pbd1"  classid="CLSID:4F26B906-2854-11D1-9597-00A0C931BFC8" width="1024" height="768" >
                      <param  name="DisplayURL" value="C:\Users\user\Desktop\Display1.PDI">
                  </object>
                   <script language="javascript" for="Pbd1" event="EventCall()">fnEventCall(var0);</script>
                  <input type="button"  Text="Button"  />
              </form>
      </body>

      </html>

      -------------end asp code end

       

      -------------pdi click event source

      Option Explicit

      Public Event EventCall(var0 As String)
          Public Sub TestApp()
              RaiseEvent EventCall("Test Message !!")
              MsgBox 22
          End Sub

       

      Private Sub T3Dbluebuttonpressed_1_Click(ByVal lvarX As Long, ByVal lvarY As Long)
      MsgBox 11
      TestApp

      End Sub

      -------------pdi click event source

       

      but it's not working.

      Is the Web function callable from the activeview ?

      Let me know if you have any suggestions.

       

       

      Best regards