little help
On Jan 26, 11:43*am, bluburter wrote:
Dear all,
one more question:
I'm putting value as "MATNR" - it's easy, but how to accept
my choice? This time I can't use image as a object to click...
Thanks in advance for any help
Source of the page:
<title::: Y:::</title
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr"
<meta name="robots" content="noindex, nofollow"
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"
<META NAME="GOOGLEBOT" CONTENT="NOINDEX, NOFOLLOW"
<META NAME="GOOGLEBOT" CONTENT="NOSNIPPET"
<META NAME="ROBOTS" CONTENT="NOARCHIVE"
<META NAME="GOOGLEBOT" CONTENT="NOARCHIVE"
<link rel="stylesheet" href="../include/style.css" type="text/css"
<body topmargin="0" leftmargin="0"
<table border="0" cellspacing="0" cellpadding="0"
<tr
* * * * <td<img src="title.gif" align="absmiddle"</td
</tr
<tr
* * * * <td height="20"</td
</tr
<tr
* * * * <td align="center"
* * * * * * * * <table width="708" height="39" background="tab_bg.gif" border="0"
cellspacing="0" cellpadding="0"
* * * * * * * * <form name="frm" method="post"
* * * * * * * * * * * * <tr
* * * * * * * * * * * * * * * * <td width="215" style="padding-left:20px;"
* * * * * * * * * * * * * * * * * * * * <font style="color:178577;font-weight:bold;"* EDP No. : </
font<input type="text" name="MATNR" size="20"
* * * * * * * * * * * * * * * * </td
* * * * * * * * * * * * * * * * <td style="padding-left:10px;"
* * * * * * * * * * * * * * * * * * * * <img src="query.gif" onclick="frmSUB()" style="cursor:hand;"
align="absmiddle"
* * * * * * * * * * * * * * * * </td
* * * * * * * * * * * * </tr
* * * * * * * * </form
* * * * * * * * </table
* * * * </td
</tr
<tr
* * * * <td height="20"</td
</tr
<tr
* * * * <td align="center"
* * * * * * * * <table width="708" *border="0" cellspacing="0" cellpadding="0"
* * * * * * * * * * * * <tr
* * * * * * * * * * * * * * * * <td
<iframe src="erp_list.asp" name="mainfrm" width='708' height='600'
border='0' scrolling=yes *frameborder='0' id='mainfrm'</iframe
* * * * * * * * * * * * * * * * </td
* * * * * * * * * * * * </tr
* * * * * * * * </table
* * * * </td
</tr
<script
function frmSUB()
{
* * * * if(frm.MATNR.value=="")
* * * * {
* * * * * * * * alert("error");
* * * * * * * * frm.MATNR.focus();
* * * * * * * * return false;
* * * * }
* * * * frm.target = "mainfrm";
* * * * frm.action = "erp_list.asp"
* * * * Layer_ON();
* * * * frm.submit();}
function Layer_ON()
{
* * * * document.getElementById("LoadingDIV").style.displa y = "block";
}
function Layer_OFF()
{
* * * * document.getElementById("LoadingDIV").style.displa y = "none";}
</script
</script
</table
<div id="LoadingDIV" style="position:absolute;top:250;left:
120;display:none"
* * * * <table width="500" height="350"
* * * * * * * * <tr
* * * * * * * * * * * * <td align="center" style="line-height:35px;color: #4C4C4C;font-
size: 26px;font-weight:bold;"Loading...</td
* * * * * * * * </tr
* * * * </table
</div
I'm not sure I'm following, but it sounds like you are entering the
term "MATNR" into a text box on the web page and now you want to click
some button and submit your choice. It's hard to analyze without
having the actual web page to play with, but based on the source code
you provided perhaps the following will work
For Each i In IE.document.images
If i.src Like "*query.gif" Then i.Click
Next i
....Ron
|