Results 1 to 2 of 2

Thread: Edit Cells

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    Let's say I've got this table already produced by a database query:
    <table border>
    <tr>
    <td>Data Text1
    <td>Data Text2
    <td>Data Text3
    <tr>
    <td>Data Text1A
    <td>Data Text2A
    <td>Data Text3A
    </tr>
    </table>

    How do I make these cells editable so I can call some more ASP which will append the text to the existing data so the next time I see the table Text1,2,3,1A... is now "Text1 and stuff I added", "Text2 and stuff I added after adding to Text1"... I don't want to use any controls.

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You will need to create INPUT tags and place your database text into the value attribute of the INPUT tag. Then the text is editable in a textbox. You can then get the values from the textboxes and update the database.

    Also, you need to close your td and tr blocks.

    Try this instead:

    Code:
    <table border=1> 
     <tr> 
      <td><input id=data1 value=Data Text1></td>
      <td><input id=data2 value=Data Text2></td>
      <td><input id=data3 value=Data Text3></td>
     </tr>
     <tr> 
      <td><input id=data1A value=Data Text1A></td>
      <td><input id=data2A value=Data Text2A></td>
      <td><input id=data3A value=Data Text3A></td>
     </tr> 
    </table>
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width