|
|
本帖最后由 bess 于 2012-6-5 16:53 编辑
以前我的SP4下是正常的;
但是更新到了SP5后,这个FormHelper.引用不了了。
报JS错“对象不支持此属性或方法”
错误行:FormHelper.getSelectValue("。。。。。。。。
代码如下,是没有引用类还是什么呢?原本在SP4一样的代码没问题的。在SP5下就出差这个问题了。-
- <script src='<ww:url value="/dwr/interface/FormHelper.js"/>'></script>
- function selectYearChange(value){
- selectYear = value;
- //alert(selectYear);
- var application = document.getElementById("application").value;
- var domainid = '<%=domainid%>';
- var wheres = "where year(ITEM_fd_projectyear) = '"+value+"'";
- if(selectMonth !='null' && selectMonth !=null && selectMonth !=""){
- wheres ="where year(ITEM_fd_projectyear) = '"+value+"' and month(ITEM_fd_projectyear)='"+selectMonth+"'"
- }
- FormHelper.getSelectValue("Fd_ProjName","projectmanager",wheres,application,domainid,"selectProject",function(str) {
- var func=eval(str);
- func.call();});
- }
复制代码 |
|