I have read and tried every combination for hours. I'm sorry, but I
don't get it. How do I have a form with textboxes and buttons and
allow click events to execute a server function then display a
property on the client?
Here is code, albeit changed to show both paths I have tried to
follow, neither of which works. I also can't seem to find out how to
trap for the errors so I can see what's going wrong.
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<%
Dim sNumber
sNumber = "102"
set etLine1 = Server.CreateObject("etTT40.etLine")
etLine1.Enabled = True
etLine1.DeviceName = "Analog Line 1(dxxxB1C1)"
etLine1.DeviceActive = True
response.write ("<br>etLine1.DeviceName: " & etLine1.DeviceName)
response.write ("<br>" & etLine1.DeviceActive)
'all above code works. I can even dial if I stick the dial
method here
Sub Dial()
etLine1.CallDial() ' Here is just get "error on page" at the
' bottom of my browswer
End Sub
%>
<SCRIPT LANGUAGE="VBScript">
<!-- This doesn't work, it just dials executes when the page loads
even when
I expect it to only get here with onclick
Sub Dial()
<%=etLine1.CallDial %>
end sub
-->
</SCRIPT>
</HEAD>
<BODY bgcolor="#B0E0E6">
End Sub
<FORM NAME="CallerID">
<p>Caller ID Number <input type="text"
name="TextCallerIDNumber" size="20" value="<%=sNumber%>">
<input type="button" name="btnDial" value="Dial This Number"
onclick="Dial()"></p>
<p>Caller ID Name <input
type="text" name="TextCallerIDName" size="20">
  ; </p>
<input type="button" name="btnHangup" value="Hangup Call"
onclick="Hangup()">
'I even tried to put <%=CallDial() here to no avail
</FORM>
</HTML>
This is obviously a telephony program and in this sample, I just want
to be able to dial a call by pressing a button. The server has the
hardware on it and would dial the call from there. I also would like
to be able do dial into the server and the OnCallerID event should
fire. I then want to display the caller ID on the client side.
Thanks.
Fred