学习笔记

导航

2010年12月26日 #

How to call Delphi code from scripts running in a TWebBrowser

摘要: Contents Introduction Overview Implementing the external object Registering the external object with TWebBrowser Calling into Delphi from JavaScript Case study Overview Designing the main form Defining the external object Implementing the external object Implementing IDocHostUIHandler Registering th 阅读全文

posted @ 2010-12-26 23:08 2狗子 阅读(3425) 评论(0) 推荐(0) 编辑

tmlfile 长连接超时断开问题

摘要: 我发现把iframe放到htmlfile中与服务端建立的长连接会断开,最后发现是由于IE的垃圾回收引起的,简单的解决办法如下面的红色字体显示:!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"scriptfunction tranH(i){document.getElementsByName("tt")(0).value=i;}function rpc_iframe(){var transferDoc = new ActiveXObject 阅读全文

posted @ 2010-12-26 13:23 2狗子 阅读(229) 评论(0) 推荐(0) 编辑