This topic is locked

Multi onclicks on a page

3/14/2008 1:24:01 PM
ASPRunnerPro General questions
T
trekereric author

How do I add more than one "onclick" to a table.

onclick="frmAdmin.a.value='update'; frmAdmin.submit(); return false;"

href="TableName_list.htm#">TableName</A>
The above "onclick" copies to one table and I need another "Onclick" to copy to another table if the user chooses to.
with "Function BeforeDelete":
strCreate = "insert into database.[_SavedTable] (Field1, Field2) select Field1, Field2) from database.[_Table2] where " & where

dbConnection.Execute strCreate

BeforeDelete = False
Now I need another "onclick" and function to do the same to another table on the same list page.

G
goomba 3/14/2008

I'm still new at runner compared to many others here, but I have a few thoughts.

  1. Could you not put a SECOND button on the form that the user can click to copy it to another table. You would have a choice between the two buttons, but it would do it,
  2. OR could you make a runtime decision based on the currently logged in user to perform the task,
  3. Or could you not display an Alert after the first copy asking them if they want to copy to another table?
    Just a few quick thoughts. I know that I've used the scenario in number 2 before and it works quite well.