???关于自动填写网页的一个小问题!!在线等待…………(80分)

G

god263

Unregistered / Unconfirmed
GUEST, unregistred user!
网页内容如下:
<html>
<head>
<title>测试</title>
<body>
<input size="20" name="Edi" type="text">
<input size="20" name="editfile" type="file">
</head>
----------------------------
请问我用如下方法能自动填写第一个(edi)框
而第二个(editfile)却不能填写上去呢???
if UpperCase(doc.all.item(i).Name)='EDI' then
doc.all.item(i).Value :='填写'; //可以填写上去
if UpperCase(doc.all.item(i).Name)='EDIFILE' then
doc.all.item(i).Value :='d:/aa.txt';//不能填写上去
请大家指教!!!在线等待…………
 
'EDIFILE' ->
'EDITFILE'
 
什么意思?? 没看懂! [:(]
 
if UpperCase(doc.all.item(i).Name)='EDIFILE' then

就是你的这句话里写错了
应该是这样的
if UpperCase(doc.all.item(i).Name)='EDITFILE' then
 
哦, 不好意思。 if UpperCase(doc.all.item(i).Name)='EDIFILE' then
这段代码写错了。 我看了一些资料, 说input 为file类型的无法直接赋值!
所以 doc.all.item(i).Value :='d:/aa.txt'是不行的! 有无别方法??
 
接受答案了.
 

Similar threads

I
回复
0
查看
620
import
I
I
回复
0
查看
708
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
724
import
I
顶部