aburquez Posted June 4, 2010 Posted June 4, 2010 Hi! Im trying to click on a specific cell for a table, I have tried several things but I still dont know how to get a reference to this object.I installed DebugBard v5.4.1 and this is part of the code for the webpage (by the way, how can I upload this code on a more organized manner) Well , here is part of the html code, The row/cell im trying to click is mentioned on the fifth row from the bottom (GSRT050). thanks in advance for any help! <FORM><MAP name=16E.map></MAP><A href="/web/WebCust.nsf/10664419ec7aaf0b862567d60026f806?OpenNavigator"><IMG border=0 src="/web/WebCust.nsf/10664419ec7aaf0b862567d60026f806/$NavImagemap/0.52?OpenElement&FieldElemFormat=gif" isMap width=780 height=98 useMap=#16E.map></A><BR> <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"> <TBODY> <TR vAlign=top> <TD width="4%"><IMG border=0 alt="" src="/icons/ecblank.gif" width=150 height=1><BR><B><FONT size=3>Report Distribution</FONT></B><BR><BR> <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"> <TBODY> <TR vAlign=top> <TD bgColor=#ffffff width="100%"><A href="/web/WebCust.nsf/myreports"><FONT size=2>Reports</FONT></A></TD></TR> <TR vAlign=top> <TD bgColor=#ffffff width="100%"><A href="/web/WebCust.nsf/vwInetRptRecordLayouts2?OpenView"><FONT size=2>TXT Record Layouts</FONT></A></TD></TR> <TR vAlign=top> <TD bgColor=#ffffff width="100%"><A href="/web/WebCust.nsf/gscbbs"><FONT size=2>Bulletin Board System</FONT></A></TD></TR> <TR vAlign=top> <TD bgColor=#ffffff width="100%"><A href="http://www.grocerssupply.com/cgi-bin/retailer_documentation.pl" target=_blank><FONT size=2>Report Documentation</FONT></A></TD></TR> <TR vAlign=top> <TD> </TD></TR> <TR vAlign=top> <TD> </TD></TR> <TR vAlign=top> <TD> </TD></TR> <TR vAlign=bottom> <TD bgColor=#ffffff width="100%"><A href="http://www.adobe.com" target=_blank></A><A href="http://www.adobe.com/prodindex/acrobat/readstep.html#reader" target=_blank><IMG border=0 src="/web/webcust.nsf/0d20e874c413a98c862569730054b5ce/$Body/0.ED6?OpenElement&FieldElemFormat=gif" width=88 height=31></A></TD></TR></TBODY></TABLE></TD> <TD width="100%"><IMG border=0 alt="" src="/icons/ecblank.gif" width=1 height=1><BR> <TABLE border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR vAlign=top> <TD width=96> </TD> <TD width=427> <DIV align=center><FONT size=5 face="Times New Roman">Internet Reports</FONT></DIV></TD></TR></TBODY></TABLE> <TABLE border=0 cellSpacing=0 cellPadding=0> <TBODY> <TR class=header vAlign=top> <TD width=67><BR>Type</TD> <TD width=67><BR>Name</TD> <TD width=322><BR>Description</TD> <TD width=82> <BR> </TD></TR> <TR id=r1c0 class=rowEven onclick="setLastRow(1,'rowEven');crossRow_over(1,4)" vAlign=top> <TD id=r1c1 width=67> <DIV align=center><A onclick='fetchReport("CNAR035");'><IMG border=0 src="/images/report.gif"></A></DIV></TD> <TD id=r1c2 onmouseover="setLastRow(1,'rowEven');crossRow_over(1,4)" width=82><A onclick='fetchReport("CNAR035");'><B>CNAR035</B></A></TD> <TD id=r1c3 width=322><A onclick='fetchReport("CNAR035");'>Customer Credits Report</A></TD> <TD id=r1c4 width=82> </TD></TR> <TR id=r2c0 class=rowOdd onclick="setLastRow(2,'rowOdd');crossRow_over(2,4)" vAlign=top> <TD id=r2c1 width=67> <DIV align=center><A onclick='fetchReport("CNAR171G");'><IMG border=0 src="/images/report.gif"></A></DIV></TD> <TD id=r2c2 onmouseover="setLastRow(2,'rowOdd');crossRow_over(2,4)" width=82><A onclick='fetchReport("CNAR171G");'><B>CNAR171G</B></A></TD> <TD id=r37c1 width=67> <DIV align=center><A onclick='fetchReport("GSPL170");'><IMG border=0 src="/images/report.gif"></A></DIV></TD> <TD id=r37c2 onmouseover="setLastRow(37,'rowEven');crossRow_over(37,4)" width=82><A onclick='fetchReport("GSPL170");'><B>GSPL170</B></A></TD> <TD id=r37c3 width=322><A onclick='fetchReport("GSPL170");'>Pallet Tracking Report</A></TD> <TD id=r37c4 width=82> </TD></TR> <TR id=r38c0 class=rowOdd onclick="setLastRow(38,'rowOdd');crossRow_over(38,4)" vAlign=top> <TD style="BACKGROUND: #ffffd0; CURSOR: hand" id=r38c1 width=67> <DIV align=center><A onclick='fetchReport("GSRT050");'><IMG border=0 src="/images/report.gif"></A></DIV></TD> <TD style="BACKGROUND: #ffffd0; CURSOR: hand" id=r38c2 onmouseover="setLastRow(38,'rowOdd');crossRow_over(38,4)" width=82><A onclick='fetchReport("GSRT050");'><B>GSRT050</B></A></TD> <TD style="BACKGROUND: #ffffd0; CURSOR: hand" id=r38c3 width=322><A onclick='fetchReport("GSRT050");'>Retail List</A></TD> <TD style="BACKGROUND: #ffffd0; CURSOR: hand" id=r38c4 width=82> </TD></TR> <TR id=r39c0 class=rowEven onclick="setLastRow(39,'rowEven');crossRow_over(39,4)" vAlign=top> <TD style="BACKGROUND: #eeeeba; CURSOR: hand" id=r39c1 width=67>
exodius Posted June 5, 2010 Posted June 5, 2010 (edited) Take a look at _IETableWriteToArray, that should start you along the path to figuring it out. **Edit:Actually strike that, I misread your post.Try something like:_IENavigate ($oIE, 'javascript:fetchReport("GSRT050");)If that doesn't work, look at the _IELink*** functions. Edited June 5, 2010 by exodius
aburquez Posted June 5, 2010 Author Posted June 5, 2010 It works!! _IENavigate did the trick! Thank You!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now