Praetorian
Fri Feb 02 16:10:58 CST 2007
On Feb 2, 1:50=C2=A0pm, Ayush <"ayushmaan.j[aatt]gmail.com"> wrote:
> Replied to [Praetorian Prefect]s message :
>
> > Ayush,
>
> > <td rowspan=3D'2'><input tabindex=3D'3' type=3D'submit' value=3D' =
> > Login ' style=3D'background-color: #69A1BC; border: solid
> > #FFF 1px; outset: 0px; color: #FFF; font-weight: bold;'/></td>
>
> > above is the "Login" button (but no button).
>
> Get the parent element(or parent element of parent element..) then use
> getElementByTagNames method on that element :
>
> if the html is like this :
>
> <tr id=3D"xx"> =C2=A0 =C2=A0<--- this tr has ID
> <td rowspan=3D'2'><input tabindex=3D'3' type=3D'submit' value=3D' &=
nbsp;
> Login ' style=3D'background-color: #69A1BC; border: solid
> #FFF 1px; outset: 0px; color: #FFF; font-weight: bold;'/></td>
> <td ..etc.etc..
> </tr>
>
> 'get the input elements under that parentElement :
> set inputElms =3D document.getElementById("xx").getElementsByTagName("inp=
ut")
>
> For Each inputElm in inputElms
> If LCase(inputElm.Type)=3D"submit" AND InStr(LCase(inputElm.value),"Login=
") Then
> inputElm.Click : Exit For
> End If
> Next
>
> if you have problems making this then post the URl of web page ..
>
> --
> =E2=86=92 Ayush
> -------------
> Search =C2=A0 =C2=A0-www.Google.com| Wikipedia =C2=A0 =C2=A0-
http://en.wi=
kipedia.org
> Snip your long urls =C2=A0 -
http://snipurl.com/
> -------------
https://nmciwarroom.idc-mcs.com/