找回密码
 注册成为天翎用户
查看: 830|回复: 3

[其他] noneFlowPadding BUG

[复制链接]
联正达 发表于 2015-1-24 09:49:01 | 显示全部楼层 |阅读模式
本帖最后由 bill 于 2015-1-26 16:05 编辑

QQ图片20150124093837.png QQ图片20150124093853.png
用noneFlowPadding函数实现主页显示记录,如果点击具体某一条记录,提交、返回、回退都会出现refreshElement cloaseActiveTab这样bug(ie不会,火狐测试有问题,其他浏览器没测试)
bill 发表于 2015-1-26 16:00:21 | 显示全部楼层
请楼主截下图你具体怎么调用noneFlowPadding函数实现主页显示记录
回复

使用道具 举报

 楼主| 联正达 发表于 2015-1-27 16:58:41 | 显示全部楼层
回复 2# bill
/*无流程做待办任务**/
function noneFlowPadding(sql,fieldNames,width,height){
var fileName = "jcpt";
var w = "100%";
var h = "100%";
if(width) w = width;
if(height) h = height;
var datas = queryBySQL(sql);
var temp = "";
var value = "";
var count = 1;
var tempvalue="";
if (datas.size() > 0) {
        for ( var it = datas.iterator(); it.hasNext();) {
                var doc = it.next();
                if(fieldNames.constructor==Array){
                       count=fieldNames.length;
                       tempvalue="";
                       for(var i=0;i<count;i++){
                                 tempvalue+=doc.getItemValueAsString(fieldNames)+"&nbsp;&nbsp;";                           }
                }else{
                        tempvalue=doc.getItemValueAsString(fieldNames);
                }
               
                temp += '<tr>'
                            +'<td id="pd" onMouseOver="this.className=\'over\'" onMouseOut="this.className=\'out\'" style="margin-top:2px;">'   
                        +'<img src="/'+fileName+'/resource/img/unRd.gif" alt="未读"  name="isUnRdImg"/>'
                        +'<a style="width:85%" href="javaScript:viewDoc(\''
                                + doc.getId()
                                + '\',\''
                                + doc.getFormid()
                                + '\','
                                //+ null
                                +false
                                + ')">'
                                + tempvalue
                                + '&#160;&#160;&#160;</a></td></tr>';
        }
       
}
value = '<div class=\'ElementDiv\'  border=\'0\' style=\'padding:5px;background-color:white;height='+h+'; width='+w+';overflow:auto\' >'
                    +'<div class="context"><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="">'
                    + temp
                    +'</table>'
                    +'</div><div align="left">'
                    +'</div>';
        value += '<script type="text/javascript">'
                +'function viewDoc(docid, formid,reminderid) {'
                +'if (docid && formid) {'
                        +'var viewDocURL = "/'+fileName+'/portal/dynaform/document/view.action?application='+getApplication()+'&amp;_currpage=1&amp;_rowcount=1&amp;_pagelines=10&amp;_backURL=%2F'+fileName+'%2Fportal%2Fdispatch%2Fhomepage.jsp?application='+getApplication()+'";'
                        +'viewDocURL += "&_docid=" + docid;'
                        +'viewDocURL += "&_formid=" + formid;'
                        +'viewDocURL += "&reminderid=" + reminderid;'
                        +'window.location.href = viewDocURL;'
                +'}'
        +'}'
        +'</script></div>';

return value;
}
回复

使用道具 举报

bill 发表于 2015-4-9 14:05:00 | 显示全部楼层
不好意思,之前因工作的原因没跟进论坛,请问楼主现在问题解决了?
回复

使用道具 举报

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-14 06:59

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表