Is it possible to find out what form you're currently on from a js file?
This is my issue.. I have a form, form1, that includes a table.. when a row in the table is clicked on another form pops up, form2. If the user "saves successfully" on form2, the form closes and form1 comes back into focus..my question, is it possible to send an id or call a function when that form closes to set/change values
what I want to do is change the row attribute of the row the user saved on form1. example: table.row[1].color = red
after save table.row[1].color = green
how do i access/set values of the table on form1.. I would assume I need to do something like this once I know what form I'm on..this is all being done in a js file..
foreach(row in table)
{
if (FormName.GeneralReport.rows[i]).attr("userid") == 'id')
{
$(FormName.GeneralReport.rows[i]).attr("isValid", "True");
$(formNameGeneralReport.rows[i]).css("background-color:", "green");
}
}
or... can I add a function to form1 and call that function from my js file?
thanks...