Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check box On_click

Status
Not open for further replies.

middlename

Programmer
Mar 14, 2003
16
0
0
US
On my form I have a table populated with DB records and a check box for every record. Clicking on check box I want to delete particular record . In order to do it I need to pass a recordID into intAccomID.(There is a problem!)
Obviously, I am doing something or everything wrong! :-(
Can not figure it out.

Here is my code.


<script LANGUAGE=&quot;JavaScript&quot;>
function Delete_record() { document.location.href=&quot;taforstu_changes.asp?strDelete_add=1&strOperation=delete&quot;;
}
<table>
<tr><td ALIGN=&quot;CENTER&quot;><h5><input type=&quot;checkbox&quot; name=&quot;check_del&quot; OnClick= &quot;Delete_record(); intAccomID=<%objRS(&quot;accom_id&quot;)%>&quot;><% =objRS(&quot;accom_id&quot;) %></h5></td>
</table>

Thanks for any help!
 
If you want to delete, isn't a button better than a checkbox?

Is there any particulat reason your doing this in script rather than code behind?

Rhys
Thought out... Maybe,
Opinionated... Probably
But it is only an opinion!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top