代码看起来比较烦,copy下载建立2个htm就好了

解决方案 »

  1.   

    顺便问一下,如何在htm或者jsp里面添加一个下拉框让用户选择日期?
      

  2.   

    我的问题的解决办法:就是把第二个html里面的form加到第一个html里面,
    然后改写pp()函数里面的参数获取为:
    var strParam = "<SearchConditions CategoryID='" + document.frmSearch.CategoryID.value + "' MaxRecordsCount='5000' " +
    " IndexDBID='" + document.frmSearch.IndexDBID.value + "'  ><SearchCondition InsertedTable=' '><Expression Fields='-1'" + 
    " condition='" + document.frmSearch.condition.value + "' value=' " + 
    document.frmSearch.FieldName.value + ":" + document.frmSearch.Keyword.value + "' /></SearchCondition></SearchConditions>";
    var strPath = "http://localhost:8080/webaccess/fulltext/FullTextSearch.jsp?Action=11" ;
    document.frmSearch.Search.value = strParam ;
    document.frmSearch.action = strPath;
    document.frmSearch.submit();