my first question is can i define a activex object using javascript so i won't need to use IIS
and my second question is how to do so if it is possible
hmmm ... the object has some methods you may call ... the shown one has open(), send() etc. ... and as far as i know you may find the documentation for the most common ActiveX-Objects at msdn. when using new ActiveXObject you create an instance of the 'class' and then you may use its methods, ask for the properties etc.
hey i want to start a control (in c# .net) using activex control
the problem is i need to start it using javascript so i dont know how to activate it
<script ...>
var myControl1 = new ActiveXObject(A ctiveXDotNet.my Control);//the name of the class
//the problem is that i dont know what to do from here to send the wanted value into the activex from the html and how to activate that control that it will do what it needs to do with that value
</script>
hey i want to start a control (in c# .net) using activex control
the problem is i need to start it using javascript so i dont know how to activate it
<script ...>
var myControl1 = new ActiveXObject(A ctiveXDotNet.my Control);//the name of the class
//the problem is that i dont know what to do from here to send the wanted value into the activex from the html and how to activate that control that it will do what it needs to do with that value
</script>
Read up on the object in the documentation. Use the properties, attributes, methods, etc. of the class.
If you don't know how to access a particular element on the page, show your HTML code.
Also, perhaps you could explain exactly what you are trying to do. There may be a better way rather than using ActiveX.
no it must be activex and i unserstood all the rest but now my problem is a bit different
it says that my activex object is a null or dont exsist and i think its because script bolcker but i dont know how to handle them
skrech that my problem is now it says that the aotumation server can't create object and i made the initialize and script activex controls not marked as safe ... enabled
skrech that my problem is now it says that the aotumation server can't create object and i made the initialize and script activex controls not marked as safe ... enabled
Comment