C
chrisho
I have the following bit of web site source. there is no ID and Name for the
submit button, anyone can help me to change the VB in order to click the
button.
<P><BR><P>
<B>Before you can access this function, you will need to login</B>
<P>
<FONT FACE="Arial" SIZE="-1"><B>Operator ID:</B></FONT>
<INPUT TYPE="TEXT" NAME="SEC_username" Size=10 VALUE="">
<P>
<FONT FACE="Arial" SIZE="-1"><B>Password:</B></FONT>
<INPUT TYPE="PASSWORD" NAME="SEC_password" Size=10 VALUE="">
<P><BR><P>
<INPUT TYPE="HIDDEN" NAME="scriptname" VALUE="/cgi-bin/ias.cgi">
<INPUT TYPE="HIDDEN" NAME="parameters" VALUE="scr=menu_main%2ecgi">
<INPUT TYPE="HIDDEN" NAME="SEC_usertype" VALUE="operator">
<INPUT TYPE="SUBMIT" VALUE="LOGIN">
<INPUT TYPE="RESET" VALUE="Clear">
</CENTER>
Can anyone help? I just to use the following VB to send a click stroke,
anyone can help to identify what I have to do as I cannot get it work because
I cannot find the right click name or ID?
ie.document.all("SEC_username").Value = "XX"
ie.document.all("SEC_password").Value = "XXXX"
Set ipf = ie.document.all.Item("submit")<---this maybe incorrect.
ipf.Click
submit button, anyone can help me to change the VB in order to click the
button.
<P><BR><P>
<B>Before you can access this function, you will need to login</B>
<P>
<FONT FACE="Arial" SIZE="-1"><B>Operator ID:</B></FONT>
<INPUT TYPE="TEXT" NAME="SEC_username" Size=10 VALUE="">
<P>
<FONT FACE="Arial" SIZE="-1"><B>Password:</B></FONT>
<INPUT TYPE="PASSWORD" NAME="SEC_password" Size=10 VALUE="">
<P><BR><P>
<INPUT TYPE="HIDDEN" NAME="scriptname" VALUE="/cgi-bin/ias.cgi">
<INPUT TYPE="HIDDEN" NAME="parameters" VALUE="scr=menu_main%2ecgi">
<INPUT TYPE="HIDDEN" NAME="SEC_usertype" VALUE="operator">
<INPUT TYPE="SUBMIT" VALUE="LOGIN">
<INPUT TYPE="RESET" VALUE="Clear">
</CENTER>
Can anyone help? I just to use the following VB to send a click stroke,
anyone can help to identify what I have to do as I cannot get it work because
I cannot find the right click name or ID?
ie.document.all("SEC_username").Value = "XX"
ie.document.all("SEC_password").Value = "XXXX"
Set ipf = ie.document.all.Item("submit")<---this maybe incorrect.
ipf.Click