html文件语法:
< HEAD >
< TITLE > PB window ActiveX </ TITLE >
</ HEAD >
< BODY >
< H1 > PB window ActiveX </ H1 >
< P > 使用window ActiveX在浏览器中显示一个child类型窗口。 </ P >
< OBJECT NAME ="PBRX1" WIDTH =225 HEIGHT =83
CLASSID ="CLSID:88881304-8888-1000-8000-080009AC61A9" >
< PARAM NAME ="_Version" VALUE ="65536" ></ PARAM >
< PARAM NAME ="_ExtentX" VALUE ="5962" ></ PARAM >
< PARAM NAME ="_ExtentY" VALUE ="2164" ></ PARAM >
< PARAM NAME ="_StockProps" VALUE ="0" ></ PARAM >
< PARAM NAME ="PBWindow" VALUE ="w_web_test" ></ PARAM >
< PARAM NAME ="LibList" VALUE ="http://192.168.1.2:8080/crp.pbd;" ></ PARAM >
</ OBJECT >
</ BODY >
</ HTML >
object其他属性:CODEBASE:A URL identifying the location of the OCX or CAB file to be downloaded if the client machine does not contain the PowerBuilder window ActiveX.
param其他元素:PBAPPLICATION:The PowerBuilder Application object
DISPLAYERRORS:Boolean indicating whether to display execution time errors
COMMANDPARM :A string you want to pass to your window. To access this string from within your window, call the CommandParm function
web服务器配置:将PBD和PBRX80.ocx(标准模式)或PBRXs80.ocx(安全模式)拷贝到web站点相应目录下,根据liblist和codebase所用url而定。
browser端:注册PBRX80.ocx
IE浏览器要注意安全设置,IE6能正常使用,Netscape7不能显示,可能是没有安装NCompass ScriptActive plug-in
注意:liblist所使用的URL如果web端口不是80则要指定端口