本帖最后由 luoboshiwo 于 2012-05-29 11:16:15 编辑

解决方案 »

  1.   

    先找出是哪一行代码报错?怀疑是没有把data对象传递给callback()函数。
      

  2.   

    goodsCatelogSelect函数使用中的catelogService对象是什么?在哪里定义的?
      

  3.   

     +
    这个需要测试下,
    function callback(data)
    {
    alert(data);//看看弹出是否为null
    document.getElementById("indicator").style.display="none";
    DWRUtil.addOptions("goodsCatelogId",data,"catelogId","catelogName");
    }
      

  4.   


    加了alert(data);这句后,弹出的窗口中为  , , ,  
    这是说明值都没有取到嘛?
      

  5.   

    如果楼主的DWR后台处理的没有问题的话 不妨在function callback(data)这个函数体中 用Firebug看下data是什么东西 如果data没问题 重点关注下这两个东西 取dom能否取到?
    DWRUtil.addOptions("goodsCatelogId",data,"catelogId","catelogName");