如题!
框架代码:
<frameset rows="127,*" cols="*" frameborder="no" border="2" framespacing="0">
<frame src="top.html" name="top" scrolling="No" noresize="noresize" id="topFrame" title="topFrame">
<frameset rows="*" cols="207,*" framespacing="0" frameborder="no" border="0">
<frame src="left.html" name="leftF" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame">
<frame src="right.html" name="right" id="mainFrame" title="mainFrame">
</frameset>
</frameset>其中RIGHT里有两个表单框
<body>
<form action="login.php" name="login_FORM" method="post">
<input name="uu" type="text" >
<input type="password" name="pp" >
<input type="submit" value="登 录" name='sub' >
</body>我现在想用DELPHI操作框架里RIGHT里的表单!!请问大人们我应该怎么实现??? 我是新手!!
框架代码:
<frameset rows="127,*" cols="*" frameborder="no" border="2" framespacing="0">
<frame src="top.html" name="top" scrolling="No" noresize="noresize" id="topFrame" title="topFrame">
<frameset rows="*" cols="207,*" framespacing="0" frameborder="no" border="0">
<frame src="left.html" name="leftF" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame">
<frame src="right.html" name="right" id="mainFrame" title="mainFrame">
</frameset>
</frameset>其中RIGHT里有两个表单框
<body>
<form action="login.php" name="login_FORM" method="post">
<input name="uu" type="text" >
<input type="password" name="pp" >
<input type="submit" value="登 录" name='sub' >
</body>我现在想用DELPHI操作框架里RIGHT里的表单!!请问大人们我应该怎么实现??? 我是新手!!
解决方案 »
- 图标的背景在工具栏怎么是黑的?
- 关于QuickReport预览时图片显示正确,但有时打印时图片显示为黑色图片
- mysql连接问题?重金酬谢!再开贴!
- 我用dll建立了一个窗体,怎么与之里面的控件通讯?
- 看看下面的文本入数据库的代码,为什么执行到closefile(f1)处发生I/Oerror!
- 问题:用DELPHI读写ORACLE中的BLOB类型字段(内详),请高手指点!
- 【在线等答案】数据库相关问题 请各位大侠来帮忙
- 关于LINUX嵌入式系统开发!急急急!在线等待!
- 问个问题?可以么?*。pdg是什么格式,用什么软件打开?在下谢谢了!
- 客户端的应用程序能读写Cookie吗?(
- cxGrid 中 checkbox 问题
- 简单问题 批处理获取一些硬件信息 dos高手
方法不一的。
我搜了很多信息,没有能用得上的!希望能得到大人们的点播!!
procedure TForm1.Button2Click(Sender: TObject);
var
doc:ihtmldocument2;
Name,Password:IHTMLInputElement;
tem : Olevariant;
begin if WebBrowser1.Busy then
self.WebBrowser1.Stop;
WebBrowser1.Navigate('http://www.xxxx.com/login.php');
while webbrowser1.ReadyState<>READYSTATE_COMPLETE do
Application.ProcessMessages;
if assigned(WebBrowser1) then
begin
doc := WebBrowser1.Document as ihtmldocument2;
Name := doc.all.item('pwuser',0) as IHTMLInputElement;
password := doc.all.item('pwpwd',0) as IHTMLInputElement;
if EdtName.Text <> '' then
Name.value := EdtName.Text
else
EdtName.SetFocus;
if EdtPwd.Text <> '' then
Password.value := EdtPwd.Text
else
EdtPwd.SetFocus; tem := doc.all.item('submit',0);
sleep(30);
tem.click;
end;
end;