The table may be initially populated with a data source, however once client
side it is in fact just an HTML table... correct?
One route you could take is using <div></div> tags inside each cell
surrounding each item. Then with a mix of javasript and CSS there should be
no problem with creating an onClick even to allow you to edit that cell -
now tio savethat data (unless your using some .NET of which I am not
familiar) you would still have to post back to the server so in your
javascript function you should need to write your values off to hidden
fields.
<form action=:"somepage.asp" method="post">
<table>
<tr>
<td><div style="myStyle" id="<%=rs("item1")%>"
onClick="JavaScript:EditBox(this);"><%=rs("item1")%></div></td>
<td><div style="myStyle" id="<%=rs("item2")%>"
onClick="JavaScript:EditBox(this);"><%=rs("item2")%></div></td>
</tr>
</table>
<input type="hidden" name="item1" value="<%=rs("item1")%>">
<input type="hidden" name="item2" value="<%=rs("item2")%>">
<br>
<input type="submit">
</form>
Take in mind there is no javascript written - its early still and im getting
ready for work - but this is an example of how I think you would be able to
do what you are wanting to do. In the JavaScript you might want to grab the
innertext of that div (this) or maybe some better accepted fuction to get
that text, and pop-up a little screen to modify it, then just replace that
text being viewed and the text in the hidden field.
Must get coffee... must get ... *eep* still not dressed...
Greg
----- Original Message -----
From: "LeGrand Decius" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 7:42 AM
Subject: How do you make a table cell editable (onclick)?
>
> Hello everyone,
>
> Does anyone have examples or sugestions on making a table cell editable?
>
> Note: The table is populated from a recordsource.
>
> Thank you in advance.
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]