var e1 = document.getElementById('Client');
var e2 = document.getElementById('Text1');
e1.Connect(e2.value,"User1","");
Firstly, e1 is just a variable which holds a object value here that will be defined at runtime. So, I have no idea how come you can get intellisense for
Connect()
associated with it.
Now, based on error, clearly the
connect()
method is not exposed of the object you are trying to use.
Use Javascript debugging to see the internals and confirm if the method is exposed.
Put a
debugger;
at the start of function and enable Javascript debugging in your IE settings. Once done, it would automatically stop there in debug mode where you can see whats there in the e1 object. May be it's null and
document.getElementById('Client');
needs a change to get the required object correctly.