document.all.sltIssueFromYear用all来取,或者forms[0]也行.

解决方案 »

  1.   

    Event 'crruteDate()' failed: TypeError: Cannot convert null to an object. 这句说明是year本身没有获取正确的值。看看你的java文件里面的否正确赋值了。或者将该值和2006用javascript强制转换成为date对象再计算试试。
      

  2.   

    function crruteDate()
    {
    var crruteDate=new Date();
    var year=crruteDate.getFullYear();
    var month=crruteDate.getMonth();
    var day=crruteDate.getDate();
    var hour=crruteDate.getHours();
    var numDays=numberOfDays(month,year);    document.getElementById("sltIssueFromDay");
    var ss =  document.getElementById("sltIssueFromYear").selectedIndex
    document.getElementById("sltIssueFromYear").selectedIndex=year-2006; document.getElementById("sltIssueFromMonth").selectedIndex=month;

    if(numDays==30)
    {
    document.getElementById(sltIssueFromDay).remove(numDays);
    }else if(numDays==28)
    {
    document.getElementById("sltIssueFromDay").remove(numDays);
    document.getElementById("sltIssueFromDay").remove(numDays+1);
    document.getElementById("sltIssueFromDay").remove(numDays+2);
    }
    document.getElementById("sltIssueFromDay").selectedIndex=day-1;
    document.getElementById("sltIssueFromHour").selectedIndex=hour;
    document.getElementById("sltIssueToYear").selectedIndex=year-2006;
    document.getElementById("sltIssueToMonth").selectedIndex=month;
    document.getElementById("sltIssueToDay").selectedIndex=day-1;
    document.getElementById("sltIssueToHour").selectedIndex=hour; }以上是java script的脚本,系统在页面加载的时候 调用该脚本!
      

  3.   

    请问在javascript 中如何进行日期的强制转换!
      

  4.   

    (This is a bug in 6.0). 
    If you try to do a interactive Connection command using a scripted Connectors or a scripted Parsers attached to a Connector then you will get the above error if you have used the main object in your Connector.  Your AssemblyLine will work fine when you run it, it is only when you interactively use the Connect functionality that it will fail. 那个工具没用过,不知道是做什么的,不过找到些资料,上面这段差不多意思就是说不能进行交互式的脚本
      

  5.   

    document.getElementById浏览器无法识别??
    web 2.0规范都建议用的方式,绝大多数浏览器都支持的啊...........
      

  6.   

    对,就是java 不能将script 的脚本给翻译成java 代码?
    该测试工具是 模拟用户点击浏览器的行为!
      

  7.   

    这种模拟点击的情况最好放在页面,有javascript来模拟