Activex(DTPicer)控件注册,在javaScript程序注册,来者有分,在线等待,

liuyinghaofu 2002-11-14 01:38:43
我用到一个日期控件,但在IE中老是有不安全提示,我在IE的TOOLS中设置了它,避免出现不安全的提示,但我不能要求用我的软件的客户去设置IE/Tools,有两个方法,
1.注册DTPicer.
2.在Javascript中设置IE/Tools安全级别.
或其它的方法.
能给我用程序实现的代码吗?

...全文
56 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
jeanven 2002-11-29
  • 打赏
  • 举报
回复
用如下格式引用改activeobject 在同一目录下加入DTPicker.lpk文件

<object CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0">
<param NAME="LPKPath" VALUE="DTPicker.lpk">
</object>
<OBJECT id=StartDate style="LEFT: 0px; WIDTH: 174px; TOP: 0px; HEIGHT: 27px"
height=27 width=174 classid=clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1>
<PARAM NAME="_ExtentX" VALUE="4604">
<PARAM NAME="_ExtentY" VALUE="714">
<PARAM NAME="_Version" VALUE="393216">
<PARAM NAME="MousePointer" VALUE="0">
<PARAM NAME="Enabled" VALUE="1">
<PARAM NAME="OLEDropMode" VALUE="0">
<PARAM NAME="CalendarBackColor" VALUE="-2147483624">
<PARAM NAME="CalendarForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTitleBackColor" VALUE="-2147483633">
<PARAM NAME="CalendarTitleForeColor" VALUE="-2147483630">
<PARAM NAME="CalendarTrailingForeColor" VALUE="-2147483631">
<PARAM NAME="CheckBox" VALUE="0">
<PARAM NAME="CustomFormat" VALUE="dd/MM/yyy hh:mm">
<PARAM NAME="DateIsNull" VALUE="0">
<PARAM NAME="Format" VALUE="662831107">
<PARAM NAME="UpDown" VALUE="0">
<PARAM NAME="CurrentDate" VALUE="37488">
<PARAM NAME="MaxDate" VALUE="2958465">
<PARAM NAME="MinDate" VALUE="-109205">
</OBJECT>

改文件内容如下
LPK License Package

//////////////////////////////////////////////////////////////////////////////

// WARNING: The information in this file is protected by copyright law //

// and international treaty provisions. Unauthorized reproduction or //

// distribution of this file, or any portion of it, may result in severe //

// criminal and civil penalties, and will be prosecuted to the maximum //

// extent possible under the law. Further, you may not reverse engineer, //

// decompile, or disassemble the file. //

//////////////////////////////////////////////////////////////////////////////

{3d25aba1-caec-11cf-b34a-00aa00a28331}

CxvKxiKoUkao4QMkgz32Cg=



AQAAAA=



nhvdIMSH0RGL4wAA+HVNoSQAAAA

2ADUAMQBBADgAOQA0ADAALQA4ADcAQwA1AC0AMQAxAGQAMQAtADgAQgBFADMALQAw

ADAAMAAwAEYAOAA3ADUANABEAEEAMQA=



blues-star 2002-11-29
  • 打赏
  • 举报
回复
DtPicker是由两个控件构成的
1.文本框;
2.MONTH view。

可以单独使用month view,不知道会不会有提示。
liuyinghaofu 2002-11-29
  • 打赏
  • 举报
回复
这个问题可是100分呀
liuyinghaofu 2002-11-28
  • 打赏
  • 举报
回复
高分求助,代码如下,当你在界面输入数据之后,再点时间控件就出"安全提示"
这是为什么呀.在线等待

<html>
<head>
</head>
<body>
<form name="frmproject" method="post">
<table border="1" width="100%" height="188" bgcolor="#99CCFF">
<tr>
<td width="21%" height="6" bgcolor="#CCFFCC">
<font color="green" size="4">Projectname</font>
</td>
<td width="79%" colspan="2" height="6">
<p align="left">
</p>
</td>
</tr>
<tr>
<td width="21%" height="6" bgcolor="#CCFFCC">
<font color="green" size="4">Workflow</font>
</td>
<td width="79%" colspan="2" height="6">
<p align="left">
<select size="1" name="selecttemplate" style="width:99%">
<option value="0" selected="on">

--------------------------
null----------------------
</option>
<option value="1">
templatname1
</option>
<option value="2">
templatname2
</option>
<option value="3">
templatname3
</option>
</select>
</p>
</td>
</tr>
<tr>
<td width="21%" height="21" bgcolor="#CCFFCC">
<font color="green" size="4">Data</font>
</td>
<td width="39%" height="21">
<p align="left">
<font color="purple" size="3">
<object classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" codebase="http://activex.microsoft.com/controls/vb6/MSComCt2.cab" style="width:85%" height="22">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_Version" value="393216">
<param name="MousePointer" value="0">
<param name="Enabled" value="1">
<param name="OLEDropMode" value="0">
<param name="CalendarBackColor" value="-2147483643">
<param name="CalendarForeColor" value="-2147483630">
<param name="CalendarTitleBackColor" value="-2147483633">
<param name="CalendarTitleForeColor" value="-2147483630">
<param name="CalendarTrailingForeColor" value="-2147483631">
<param name="CheckBox" value="0">
<param name="CustomFormat" value>
<param name="DateIsNull" value="0">
<param name="Format" value="662831105">
<param name="UpDown" value="0">
<param name="CurrentDate" value="37588">
<param name="MaxDate" value="2958465">
<param name="MinDate" value="-109205">
</object>
Begin
</font>
</p>
</td>
<td width="36%" height="21">
<object classid="clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1" codebase="http://activex.microsoft.com/controls/vb6/MSComCt2.cab" style="width:99%" height="22">
<param name="_ExtentX" value="2646">
<param name="_ExtentY" value="1323">
<param name="_Version" value="393216">
<param name="MousePointer" value="0">
<param name="Enabled" value="1">
<param name="OLEDropMode" value="0">
<param name="CalendarBackColor" value="-2147483643">
<param name="CalendarForeColor" value="-2147483630">
<param name="CalendarTitleBackColor" value="-2147483633">
<param name="CalendarTitleForeColor" value="-2147483630">
<param name="CalendarTrailingForeColor" value="-2147483631">
<param name="CheckBox" value="0">
<param name="CustomFormat" value>
<param name="DateIsNull" value="0">
<param name="Format" value="662831105">
<param name="UpDown" value="0">
<param name="CurrentDate" value="37588">
<param name="MaxDate" value="2958465">
<param name="MinDate" value="-109205">
</object>
</td>
<td width="36%" height="21">
<p align="left">
<font color="purple" size="4">End</font>
</p>
</td>
</tr>
<tr>
<td width="21%" height="16" bgcolor="#CCFFCC">
<font color="green" size="4">Executor</font>
</td>
<td width="79%" colspan="2" height="16">
<p align="left">
<input type="button" value="Select" name="butexecutor" style="color: #6600CC"/>
<input type="text" name="selectcreator" style="WIDTH: 89%" value="" />
</p>
</td>
</tr>
<tr>
<td width="21%" height="87" bgcolor="#CCFFCC">
<font color="green" size="4">Content</font>
</td>
<td width="79%" height="87" colspan="2">
<p align="left">
<textarea rows="4" name="content" cols="87" style="WIDTH: 99%"></textarea>
</p>
</td>
</tr>
</table>
<p align="right">
<input type="button" value="Detail Des" name="detail" style="color: #6600CC"/>
<input type="button" value="New save" name="start" style="color: #6600CC" />
<input type="button" value="Update save" name="renew" style="color: #6600CC"/>
</p>
</form>
</html>
blues-star 2002-11-15
  • 打赏
  • 举报
回复
用这个玩意会弹警告?没有啊~
vovi 2002-11-15
  • 打赏
  • 举报
回复
那应该怎么写代码呀?期待着。。。
qiushuiwuhen 2002-11-15
  • 打赏
  • 举报
回复
因为没说,加了http://activex.microsoft.com/controls/vb6/MSComCt2.cab有什么结果,至少ME测试是可以的
liuyinghaofu 2002-11-15
  • 打赏
  • 举报
回复
我这个问题还没结呀,是太难还是太易呀,为什么,没有人回答.
liuyinghaofu 2002-11-14
  • 打赏
  • 举报
回复
我的控件代码如下:
<OBJECT id=mydtp style="WIDTH: 122px; HEIGHT: 24px" classid=clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1 name=dtpendate codebase="http://activex.microsoft.com/controls/vb6/MSComCt2.cab" VIEWASTEXT> <PARAM NAME="_ExtentX"
VALUE="3228"><PARAM NAME="_ExtentY" VALUE="635">
<PARAM NAME="_Version" VALUE="393216"><PARAM NAME="MousePointer" VALUE="0"> <PARAM NAME="Enabled" VALUE="1"><PARAM NAME="OLEDropMode" VALUE="0"><PARAM NAME="CalendarBackColor" VALUE="-2147483643"><PARAM NAME="CalendarForeColor" VALUE="-2147483630"><PARAM NAME="CalendarTitleBackColor" VALUE="-2147483633"><PARAM NAME="CalendarTitleForeColor" VALUE="-2147483630"><PARAM NAME="CalendarTrailingForeColor" VALUE="-2147483631"><PARAM NAME="CheckBox" VALUE="0"><PARAM NAME="CustomFormat" VALUE=""><PARAM NAME="DateIsNull" VALUE="0"><PARAM NAME="Format" VALUE="662831105"><PARAM NAME="UpDown" VALUE="0"><PARAM NAME="CurrentDate" VALUE="37574">
<PARAM NAME="MaxDate" VALUE="2958465"><PARAM NAME="MinDate" VALUE="-109205"></OBJECT>
我加入了"http://activex.microsoft.com/controls/vb6/MSComCt2.cab"
为什么没有用呀.这个人问题可是100分呀

qiushuiwuhen 2002-11-14
  • 打赏
  • 举报
回复
<object name=dt classid=clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1 style="height:12pt" codebase="http://activex.microsoft.com/controls/vb6/MSComCt2.cab"></object>

微软的已经注册过的cab,下载安装不需要改安全级别
不做事件处理,提交到服务器用Request["dt"]就不会弹出警告框
liuyinghaofu 2002-11-14
  • 打赏
  • 举报
回复
这个问题很难吗?为什么都不说了呀

87,975

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧