首页 | English | 联系我们  
 
资料下载
        产品资料下载
            产品白皮书下载
购买注册
在线支持
培训教育
  问题聚焦
如何设置IE,保证WCM能够正常使用?

         浏览器IE的版本必须为IE5.5以上版本,现以IE 6.0为例介绍,其它IE版本的设置和其类似。

        1、将wcm服务器地址设为可信站点

        从IE菜单中依次选择“工具”->“Internet选项”,选择“安全”标签,点击4个区域图标中的“受信任的站点”图标,并点击“站点按钮”,如图所示,即可进入图所示的安全站点添加界面。在此界面中,您可以输入WCM所在的服务器地址:http://192.168.0.12:8080/wcm,然后点击“添加”将WCM所在服务器添加到信任站点列表。

        2、ActiveX控件、JaveScript访问设置

        您可以进入IE设置界面,选择“安全”标签,点击“受信任的站点”中的“自定义级别”按钮。

        在具体的安全设置中,需要依次设置:

        1)对没有标记为安全的ActiveX控件进行初始化和脚本运行:设置为“提示”或者“启用”

        2)下载未签名的ActiveX控件:设置为“提示”或者“启用”

        3)运行ActiveX控件和插件:设置为“提示”或者“启用”

        4)Java小脚本程序:设置为“提示”或者“启用”

                                      ActiveX控件、JaveScript访问设置(1)

                                      ActiveX控件、JaveScript访问设置(2)

        3、弹出窗口的设置

        从IE菜单中依次选择“工具”->“弹出窗口阻止程序”->“弹出窗口阻止程序设置”,输入WCM所在服务器的地址http://192.168.0.12:8080/wcm,点击“添加”按钮即可取消浏览器对WCM的弹出窗口过滤功能。或访问wcm时关闭弹出窗口阻止程序

WIN7、VISTA下,WCM采集文档如何使用?

        在WCM6.0及以后的版本中,在WIN7或VISTA下使用WCM的编辑器,没有特殊的限制或要求。在WCM52的版本中,在WIN7和VISTA下使用,需要对编辑器进行更新,更新文件可以从附件中下载。

WCM系统中如何制作概览分页模板?

        概览分页需要通过JS分页代码来支持,同时在置标中要添加pagesize参数来指明分页条数,分页的调用根据使用的JS代码不同,也有所不同,分页的样式在JS中进行定义,如下是一个分页示例

        <script>
var currentPage = ${PAGE_INDEX};//所在页从0开始
var prevPage = currentPage-1//上一页
var nextPage = currentPage+1//下一页
var countPage = ${PAGE_COUNT}//共多少页
document.write(countPage+"Page(s) &nbsp;&nbsp;");
//设置上一页代码
if(countPage>1&&currentPage!=0&&currentPage!=1)
       document.write("<a href=\"${PAGE_NAME}.${PAGE_EXT}\" class='fy'>First</a>&nbsp;<a href=\"${PAGE_NAME}"+"_" + prevPage + "."+"${PAGE_EXT}\" class='fy'>Prev</a>&nbsp;");
else if(countPage>1&&currentPage!=0&&currentPage==1)
       document.write("<a href=\"${PAGE_NAME}.${PAGE_EXT}\" class='fy'>First</a>&nbsp;<a href=\"${PAGE_NAME}.${PAGE_EXT}\" class='fy'>Prev</a>&nbsp;");
else
       document.write("First&nbsp;Prev&nbsp;");
//循环
var num = 5;
for(var i=0+(currentPage-1-(currentPage-1)%num) ; i<=(num+(currentPage-1-(currentPage-1)%num))&&(i<countPage) ; i++){
       if(currentPage==i)
              document.write("<span style=\"color:#FF0000;\">"+(i+1)+"</span>&nbsp;");
       else if(i==0)
              document.write("<a href=\"${PAGE_NAME}.${PAGE_EXT}\" class='fy'>"+(i+1)+"</a>&nbsp;");
       else
              document.write("<a href=\"${PAGE_NAME}"+"_" + i + "."+"${PAGE_EXT}\" class='fy'>"+(i+1)+"</a>&nbsp;");
}

//设置下一页代码
if(countPage>1&&currentPage!=(countPage-1))
document.write("<a href=\"${PAGE_NAME}"+"_" + nextPage + "."+"${PAGE_EXT}\" class='fy'>Next</a>&nbsp;<a href=\"${PAGE_NAME}_" + (countPage-1) + ".${PAGE_EXT}\" class='fy'>Final</a>&nbsp;");
else
document.write("Next&nbsp;Final&nbsp;");

//跳转页面
document.write("<font class='9ptb'>Go to Page<input type='text' id='num' value="+(currentPage+1)+" style='width:30px;font-size:12px;'/>"+
"&nbsp;<input style='font-size:12px' type='submit' value='Submit' onClick=javacript:toPage()/></font>");

function toPage(){
var _num = document.getElementById("num").value;
if(isNaN(_num)){
alert("Please enter a number");
return false;
}
var str = "${PAGE_NAME}"+"_"+(_num-1)+"."+"${PAGE_EXT}";
var url = location.href.substring(0,location.href.lastIndexOf("/")+1);
if(_num<=1||_num==null)
location.href = url+"${PAGE_NAME}"+"."+"${PAGE_EXT}";
else if(_num>countPage)
alert("Please enter numbers only "+countPage);
else
location.href = url+str;
}
</script>

WCM系统中如何制作图片轮转效果?

        图片轮换效果在各网站都有自己的方式,可以用flash方式,也可用js方式,效果用户可以自己去定义,只是需要将显示的图片嵌入到效果中去,要显示的图片是通过置标生成的,如<TRS_APPENDIX MODE=”pic” index=”0”></TRS_APPENDIX>

        如下是一段结合了flash效果和置标的示例JS代码,其中pixviewer.swf是播放图片的容器,可以从附件中下载:

        <script type="text/javascript" language="javascript">

                            var focus_width = 550;
var focus_height = 252;

var swf_height = focus_height;
var curhref = document.location.href;

                            var pic = new Array();
var linka = new Array();

<TRS_Documents ID="首页图片" NUM="5">
pic.push('<TRS_Appendix MODE="PIC" FIELD="_RECURL" INDEX="0" UPLOAD="true"></TRS_Appendix>');
linka.push('<TRS_Document FIELD="_RECURL"></TRS_Document>');

</TRS_Documents>

                            var pics = pic.join('|');
var links = linka.join('|');

var FocusFlash = new sinaFlash("${ROOT_PATH}images/pixviewer.swf", "focusflash", focus_width, swf_height, "7", "#DCDEDD", false, "High");
FocusFlash.addParam("allowScriptAccess", "sameDomain");
FocusFlash.addParam("menu", "false");
FocusFlash.addParam("wmode", "opaque");

                            FocusFlash.addVariable("pics", pics);
FocusFlash.addVariable("links", links);

FocusFlash.addVariable("borderwidth", focus_width);
FocusFlash.addVariable("borderheight", focus_height);

FocusFlash.addVariable("curhref", curhref);
FocusFlash.write("focusViewer");
</script>

Javabeans开发时“找不到本地方法库”

        “找不到本地方法库”一般是由于Javabeans中部署的dll文件(linux下 .so文件)和相应jar包没有进行正确的部署,或者部署的两个文件的版本不一致。

        Dll文件可以部署在“JDK所在目录的\ jre\bin” 目录下,Jar包可以部署在“JDK所在目录的\ jre\lib\ext”目录下。

如何使用Javabeans开发分页功能?

        TRS Javabeans的TRSResultSet对象提供了丰富的函数可以读取记录的页码信息,如

        getPage:可以得到当前记录所在页号。

        getPageCount:获取记录集中所包含的记录页数。

        getPageSize:获取记录集每页所包含的记录数。

联系方式
联系人: 齐老师
电话: 010-64848899-150
邮箱: qi.yongxin@trs.com.cn
课程推介
     全文数据库系统使用培训
     内容协作平台使用培训
     网络信息雷达系统使用培训
     TRS产品市场分析培训
     TRS行业解决方案分享
     TRS典型案例介绍
      →  申请培训
产品体验
     体验TRS全套产品,纵览
     TRS先进技术和成熟经验
     →  立即体验