如何在html文档中只调用intraweb中个别页面???(100分)

  • 主题发起人 主题发起人 zjwyyh
  • 开始时间 开始时间
Z

zjwyyh

Unregistered / Unconfirmed
GUEST, unregistred user!
我知道在普通html网页中可通过javascript启调intraweb appmode应用,但如何只调用intraweb应用中个别页面???
 
劝群放弃这个想法
 
这种想法,看来真痴心望想啦!再挂一周,仍无回答只好结贴了。
 
我帮助你ding!
 
有点痴心妄想的意思
 
用参数控制就可以
 
intraweb.dll?showwhat=1
在初使化的时候的取showwhat这个参数的值
根据这个值调用不同的iwform了
 
分成多个DLL更直接些!!
 
对,我看也只有这样啦,另外 再请问报表打印是如何实现的(最好能将表格导入客户端机器的excel中)???
多谢!
 
我是初学者,请问如何在普通html网页中通过javascript调intraweb appmode的应用?
先谢了!!
 
以下是摘抄自本论谈的一段,我的程序中就是用这样通过html文档打开的intraweb应用
出自
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1580857

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var curPopupWindow = null;
function openNewWindow() {
var center = true
var xposition = 0; // Postions the window vertically in px
var yposition = 0; // Postions the window horizontally in px
if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
xposition = 0;
yposition = 0;
}
var width = 800
var winName = 'Test'
var height = 600
//在这里您需要设置您的服务器地址和端口号
var url = 'http://127.0.0.1:1234/'
// Features to specify for a new window
//在这里您还可以设置您要打开窗口的某些属性
args = "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //NN Only
+ "screeny=" + yposition + "," //NN Only
+ "left=" + xposition + "," //IE Only
+ "top=" + yposition; //IE Only
// Performs the opening of the window.
if (curPopupWindow != null) {
if (!curPopupWindow.closed) {
curPopupWindow.close();
}
curPopupWindow = null;
}
curPopupWindow = window.open(url, winName, args, false);
curPopupWindow.focus();
}
// -->
</script>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var useragent = navigator.userAgent;
var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
var pos = useragent.indexOf('MSIE');
if (pos > -1) {
bVer = useragent.substring(pos + 5);
var pos = bVer.indexOf(';');
var bVer = bVer.substring(0,pos);
}
var pos = useragent.indexOf('Opera');
if (pos > -1) {
bVer = useragent.substring(pos + 6);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape") {
var bVer = useragent.substring(8);
var pos = bVer.indexOf(' ');
var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
var pos = useragent.lastIndexOf('/');
var bVer = useragent.substring(pos + 1);
}
document.writeln('You are using <br>');
document.writeln('Browser Name: ' + bName + '<br>');
document.writeln('Browser Version: ' + bVer + '<br>');
if (bVer >= 5) {
document.writeln('<br><br><b>CLICK <a href="javascript:openNewWindow()">HERE </a> TO LOG IN</b>');
}
else {
document.writeln('This section requires a fully HTML 4.0 compatible browser with javascript enabled.<br><br>');
document.writeln('Free browsers that meet HTML4 specifications are downloadable at:<br><br>');
document.writeln('<a href="http://www.microsoft.com">Microsoft (version 5 or higher)</a><br>');
document.writeln('<a href="http://www.netscape.com">Netscape (version 6 or higher)</a><br>');
document.writeln('<a href="http://www.opera.com">Opera (version 6 or higher)</a><br>');
}
// End -->
</script>

将这个HTML文件放入到您的WWW目录中,然后在服务器端安装好您的IntraWeb服务程序,那么当访问您的站点时,将引导使用者进入到一个无状态条、无菜单栏的浏览器窗口中。



 
非常感谢!!!
 
后退
顶部