var MemberList=showModalDialog("http://localhost/compub/client/getMember.htm","","status=no;center=yes;help=no;dialogWidth=340px;dialogHeight=220px;scroll=no;resize=no");
if(typeof(MemberList)!=="undefined"){alert(MemberList.toString());}else{alert(MemberList)};没有值返回时 就是undefined
所以你需要先判断它的类型

解决方案 »

  1.   

    我判断过的,肯定应该有值传过来的,也就是说B机器上的页面p1.jsp调用page1.jsp时返回值正常,如果把p1.jsp这个文件拿到A机器上,然后再调用B机器上的page1.jsp页面,却得不到值!调用都是用showModalDialog()方法,只是B机器上调用的是本地文件,而A机器上调用的是另一台机器B上的文件!!
      

  2.   

    通过框架来做一个转接]
    比如 
    http://www.aaa.com/pl.aspaaa 站点 新建网页  redirect.htm
    <HTML>
    <META http-equiv="Content-type" content="text/html;charset=gb2312"><SCRIPT language="javascript">
    <!--
        function funLoad()
        {
    var oFormObj = window.dialogArguments;
    dialog.location.href = oFormObj;
    }
    // -->
    </SCRIPT>
    <FRAMESET border="2" framespacing="1" frameborder="1" onLoad="funLoad()" cols="*">
    <FRAME src="" name="dialog" scrolling="auto" marginwidth="10" target="dialog">
    </FRAMESET>
    </HTML>然后在http://www.aaa.com/pl.asp中这样用
    <script language="javascript">
    <!--http://www.bbb.com/page1.jsp
    var MemberList=window.showModalDialog("redirect.htm","http://www.bbb.com/page1.jsp","help=no;dialogWidth=340px;dialogHeight=220px;");
    if(typeof(MemberList)!=="undefined"){alert(MemberList.toString());}else{alert(MemberList)};
    //-->
    </script>就可以了~
      

  3.   

    按你所做的应该完全可以实现。
    出现那种情况,那就是B机的IE有问题!
      

  4.   

    yeefly(Web开发版) 的方法是对的问题解决了,散分!!