web1.OleObject.Document.getElementByID('operatorCode').value:=mxx.Text; 来赋值,但用框架,在网页源代码内找不到代码,只有框架SCR地址。框架结构为:
<frameset id="middleframe" rows="95,8,*,30" cols="*"  framespacing="0">
   <frame src="Scollbar.htm" name="ScollbarFrame" scrolling="NO" noresize border=0  frameborder=0 >
  <frameset id="bodyFrame" rows="*" cols="230,8,*" framespacing="0"  border="0" >
    <frame src="menu.jsp" name="leftFrame"  scrolling="no" noresize border=0  frameborder=0>
    <frame src="/SMBox/SMSendSingleBox.jsp" name="mainFrame" id="mainFrame" scrolling="auto"  border=0  frameborder=0><!-- main/main_tab.html -->
  </frameset>
  <frame src="bottom.html" scrolling="NO"  name="bottomFrame" id="bar" border=0  frameborder=0>
</frameset><noframes></noframes>如何向:<frame src="/SMBox/SMSendSingleBox.jsp" name="mainFrame" id="mainFrame" scrolling="auto"  border=0  frameborder=0>这个框架内的Receivers对象和Msgcontent对象赋值?

解决方案 »

  1.   

    web1.navagite SMBox/SMSendSingleBox.jsp再赋值不行吗?
    瞎猜的,晚上回家再看
      

  2.   

    http://www.quping.com/main/Article/ShowArticle.asp?ArticleID=178
    WebBrowser 操作记要 文章的最后有对frame的操作,看看能解决你的问题吗
      

  3.   

    frames:=wb.OleObject.document.frames;
    for i:=0 to frames.length do
    memo1.lines.Add(frames[i].document.body.innerHTML);
      

  4.   

    web1.OleObject.框架ID.Document.getElementByID('operatorCode').value:=mxx.Text
    因為默認是當前的頁面,用了框架一般以ID標識
      

  5.   

    SMSendSingleBox.jsp这个里面又有很复杂的,
    <SCRIPT language=JavaScript>
    <!--
    function restore()
    {
    try{
    td1.className="l";td2.className="l";td3.className="l";
    td_1.className="l-h";td_2.className="l-c";td_3.className="l-r";
    w1.style.display="none";w2.style.display="none";w3.style.display="none";
    }catch(e){
    //alert(e);
    }
    }
    function c1()
    {
    document.getElementById('table01').height = "630";
    td1.className="lc";
    td_1.className="l-hc";
    w1.style.display="block";
    with(document.getElementById('frame1')){
    if(src == '') src="../smsend/editMessage.jsp?smSendSingle="+true;
    }
    }
    function c2()
    {
    document.getElementById('table01').height = "680";
    td2.className="lc";
    td_2.className="l-cc";
    w2.style.display="block";
    with(document.getElementById('frame2')){
    if(src == '')src="../multisend/addMultiSend.jsp";
    }
    }
    function c3()
    {
    document.getElementById('table01').height = "560";
    td3.className="lc";
    td_3.className="l-rc";
    w3.style.display="block";
    with(document.getElementById('frame3')){
    if(src == '') src="../PPMTask/addPPMTask.jsp";
    }
    }
    function c4()
    {
    td4.className="lc";
    td_4.className="l-cc";
    w4.style.display="block";
    with(document.getElementById('frame4')){
    if(src == '' ) src="../member/memberlist.jsp";//测试
    }
    }
    function c5()
    {
    td5.className="lc";
    td_5.className="l-cc";
    w5.style.display="block";
    }
    function c6()
    {
    td6.className="lc";
    td_6.className="l-cc";
    w6.style.display="block";
    }
    //-->
    </SCRIPT><style type="text/css">
    <!--
    body {
    background-color: #E6E6E6;
    margin-bottom: 0px;
    }
    -->
    </style></head>
    <body leftmargin="0" topmargin="0" rightmargin="0" marginwidth="0">
    <!-- ImageReady Slices (index2.psd) -->
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="13" background="/images/y.jpg"></td>
      </tr>
    </table><table width="100%" height=580  border="0" align="center" cellpadding="0" cellspacing="0" id="table01">
      <tr>
        <td width="21" height="50"> <img src="/images/tab_01.jpg" width="21" height="50" alt=""></td>
        <td background="/images/tab_center.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="76"><img src="/images/tab_center_left.jpg" width="76" height="50"></td>
              <td width="95%" id="barInfo" align=left class='bar'>
      <!--在这个位置添加导航条-->
      </td>
              <td width="78"><div align="right"><img src="/images/tab_center_right.jpg" width="78" height="50"></div></td>
            </tr>
        </table></td>
        <td width="20" height="50"> <img src="/images/tab_03.jpg" width="20" height="50" alt=""></td>
      </tr>
      <tr>
        <td background="/images/tab_04.jpg">&nbsp; </td>
        <td bgcolor="#FFFFFF">
    <table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" >
    <tr><td align="center" valign="top">
    <TABLE  width=100% height=100%  border=0 cellPadding=0  cellSpacing=0>
    <TBODY>
    <TR>
    <TD onclick=restore();c1();setBar() vAlign=bottom align=center width=33%  height=20>
    <DIV class=lc id=td1 style="cursor:hand">普通业务</DIV></TD>
    <TD onclick=restore();c2();setBar() vAlign=bottom align=center width=33%  height=20>
    <DIV class=l id=td2 style="cursor:hand">批量业务</DIV></TD>
    <TD onclick=restore();c3();setBar() vAlign=bottom align=center width=34%  height=20>
    <DIV class=l id=td3 style="cursor:hand">点点通业务</DIV></TD>
    <TR>
    <TD class=l-hc id=td_1 align=center  height=1>&nbsp;</TD>
    <TD class=l-c id=td_2 align=center   height=1>&nbsp;</TD>
    <TD class=l-r id=td_3 align=center   height=1>&nbsp;</TD>
    </TR>
    <TR>
    <TD class=up style="PADDING-RIGHT: 5px; BORDER-TOP: 0px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px" width=100% colSpan=6 height=100%>
    <P align=center> <TABLE width="100%" height=100% border=0 cellPadding=0  cellSpacing=0 >
    <TBODY>
    <TR>
    <TD width="100%" height='100%' align="center" valign="top">
    <DIV align=center>
    <CENTER>
    <DIV id=w1 height=100% >
    <iframe width=100% height=100% id='frame1' name='frame1'  frameborder=0 scrolling=no src=""></iframe>
    </DIV>
    <DIV id=w2 style="DISPLAY: none;" height=100%>
        <iframe width=100% height=100% id='frame2' name='frame2' frameborder=0 scrolling=no></iframe>
    </DIV>
    <DIV id=w3 style="DISPLAY: none;" height=100% >
    <iframe width=100% height=100% id='frame3' name='frame3' frameborder=0 scrolling=no></iframe>
    </DIV>
    <DIV id=w4 style="DISPLAY: none;" height=100% >
    <iframe width=100% height=100% id='frame4' name='frame4' frameborder=0 scrolling=no></iframe>
    </DIV> </CENTER></DIV></TD></TR></TBODY></TABLE> </table>
    </td>
      </tr>
      </table> </td>
        <td background="/images/tab_06.jpg">&nbsp; </td>
      </tr>
      <tr>
        <td> <img src="/images/tab_07.jpg" width="21" height="21" alt=""></td>
        <td background="/images/tab_08.jpg">&nbsp; </td>
        <td width="20" height="21"> <img src="/images/tab_09.jpg" width="20" height="21" alt=""></td>
      </tr>
    </table>
    <!-- End ImageReady Slices -->
    <SCRIPT LANGUAGE="JavaScript">
    <!--

    var div1 = document.getElementById('w1');
    var div2 = document.getElementById('w2');
    var div3 = document.getElementById('w3');好像又是一个框架,该怎么样做呀!