|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
COM Safe Registration
I have a COM component which accesses the serial port on a client machine to access a barcode scanner. I am attempting to integrate it into our website, but am having problems with it telling me the "Object does not contain property or method". I know the method is there, and it works in a win application, so I believe the problem is with IE security. How do I make this control register itself as "Safe for Scripting"? Or does anyone have any other ideas as to what may be causing my problem.
Thanks |
|
#2
|
|||
|
|||
|
Okay, I managed to register my control as "Safe", but the method still does not work.
Here is the reference code: Code:
<form id="Form1" method="post" runat="server">
<OBJECT id="wimScan" codeBase="/scannerTest/WirelessIM-XTCsetup.cab#Version=-1,-1,-1,-1" height="50" width="50"
classid="CLSID:DEA42429-0BD2-4499-86CB-A7C6E884E0F0" VIEWASTEXT>
<param name="enabled" value="1"/>
</OBJECT>
<INPUT style="Z-INDEX: 101; LEFT: 80px; POSITION: absolute; TOP: 72px" onclick="sync();"
type="button" value="Read"/>
<INPUT style="Z-INDEX: 104; LEFT: 144px; POSITION: absolute; TOP: 72px" type="button" value="About" onclick="aboutBox();">
<INPUT style="Z-INDEX: 102; LEFT: 80px; WIDTH: 216px; POSITION: absolute; TOP: 104px; HEIGHT: 80px"
type="text" size="30" name="txt"/>
<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 80px; WIDTH: 168px; POSITION: absolute; TOP: 16px; HEIGHT: 24px"
ms_positioning="FlowLayout">ABDS Scanner Prototype</DIV>
</form>
<!---->
<script language="javascript">
function sync()
{
//var myScanner = Server.CreateObject("WIRELESSIMXTC.WirelessIMXTCCtrl");
var monkey = document.getElementById('wimScan').v_Synchronize() ;
//document.getElementById("myControl1").WirelessIMXTCClass.v_Synchronize();
//alert("This ain't working!");
//Form1.txt.value = "Monkey!";
}
function aboutBox()
{
document.getElementById('wimScan').AboutBox() ;
}
</script>
|
|
#3
|
||||
|
||||
|
This question is more closely related to web page functionality. Moved to Web Development from C/C++ Help.
__________________
Officially a member of the Itsacon fan club. Beer blasts are every friday at Viper_SB's house. I bring the chips. ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > COM Safe Registration |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|