You could use javascript for adding and removing elements on the page.
Here's a basic example (that doesn't work with Netscape for Linux. But mozilla (and
ie?) can
handle it) on how to add a column to a table.
<script>
function addField() {
// get the table object
var table = document.getElementById(666);
// create the row and column
var row = document.createElement("tr");
var col = document.createElement("td");
// put a input field in it
var input = document.createElement("input");
input.setAttribute("type", "text");
col.appendChild(input);
table.appendChild(col);
}
</script>
<body>
<table id="666">
<tr><td><input type="button" value="add" onClick="javascript:addField()"/></td></tr>
</table>
---
.gudlEik
On 12-10-00 09:40 -0400, Mukka, Srikanth wrote:
> Hi Kwon,
>
> I am sorry, I could not get it, can you put some light on it.
>
> Bye
> Srik
>
> -----Original Message-----
> From: Kwon Ekstrom [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 12, 2000 5:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Table Editor
>
>
> why don't you just give the data used to generate the table row and column
> id numbers and check for those values?
>
> ----- Original Message -----
> From: "Mukka, Srikanth" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 11, 2000 12:05 PM
> Subject: Table Editor
>
>
> > Hi All,
> >
> > I have a unique requirement in my project.
> > I have to accept table name from user and display the table structure and
> > all the data in the table. Once the data is displayed, user can update or
> > insert or delete the rows.
> >
> > Displaying part is fine, but how to handle other operations once the data
> is
> > displayed. The requirement is some thing equivalent to MS Access table
> > editor.
> >
> > Does any one of you have any solutions or ideas?
> >
> > Looking for your response.
> >
> > Bye
> > Srikanth
> >
> >
> ___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html