S
scott.loomis
I have a javascript function that catches a click event of a row in a
table, but I am looking for a way to simulate a click in the first row
on page load.
function onRowClick(row)
{
//Do something
}
My table is actually a .Net Datagrid named dgrList, here is the grid
<asp:datagrid id="dgrList" runat="server" Width="448px"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
BackColor="White" CellPadding="3" GridLines="Horizontal"
autogeneratecolumns="False">
Now when I try to run something like
onRowClick(document.frmRemoteScan.dgrList.rows(0));
I get the message that dgrList is null or not an object, and when I
loop throught the elements in my form, dgrList is not one of them(yes
it is between the form tags).
My question, is there a way to reference the created table via
javascipt? Or does anyone have a way to simulate the row clcik via
javascript
table, but I am looking for a way to simulate a click in the first row
on page load.
function onRowClick(row)
{
//Do something
}
My table is actually a .Net Datagrid named dgrList, here is the grid
<asp:datagrid id="dgrList" runat="server" Width="448px"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
BackColor="White" CellPadding="3" GridLines="Horizontal"
autogeneratecolumns="False">
Now when I try to run something like
onRowClick(document.frmRemoteScan.dgrList.rows(0));
I get the message that dgrList is null or not an object, and when I
loop throught the elements in my form, dgrList is not one of them(yes
it is between the form tags).
My question, is there a way to reference the created table via
javascipt? Or does anyone have a way to simulate the row clcik via
javascript