parent.ent_button.entry_button.send_btn

解决方案 »

  1.   

    这是top画面
    <frameset>
    <frame src="#link('vm/mailOut/mailOut_button.vm')?openMode=$openMode" name="ent_button" scrolling=no noresize>
    <frame src="$link.setAction('mailOut_detail')?req.openMode=$openMode&req.user_id=$user_id&req.case_id=$case_id&req.subcase_id=$subcase_id&req.confirm_histtory_no=$confirm_histtory_no&req.btnInfo=$btnInfo" scrolling="auto" name="body_name" noresize>
    </frameset>
    这是button画面的按钮
    <form name="entry_button">
    <input type="button" name="send_btn">
    </form>
    这是body画面的操作
    function init() {
     if(authoritySendMail==1){
         top.ent_button.entry_button["send_btn"].disabled=false;
        }
    }
    现在的关键问题是对同一个数据的操作,按钮的变换时好时坏,不知什么原因
      

  2.   

    好像正常写法应该是top(或者parent也可以,当前环境下两者是一样的).ent_button.document.entry_button["send_btn"].disabled=false;
    不过你说是时好时坏,因此应该不是简单语法错误,而是运行时某些对象处理问题。
    lz再贴详细的代码吧:),“现在的关键问题是对同一个数据的操作,按钮的变换时好时坏,不知什么原因”,和这步操作有关的都贴出来,最好是将button和body页面的代码都贴出来(一些无关的html可以去掉,用省略号表示)
      

  3.   

    其实是这样的,整个top页面是一个详细画面,而我是在一个一览画面上点一个按钮跳到详细画面,然后详细画面根据一览传过来的数据来控制按钮。我现在是针对一览上同一条数据反复点那个按钮才出现上面的状况的