View Full Version : adding textboxes to a form

07-26-2002, 12:33 AM
By migrating the front end of my database application from Access to the web I found the following problem:

I have some tasks that have to be saved in a database. There could be from one to 100 tasks. When I finish writing what I have done, a java script writes a timestamp in a textbox. At the same time I should get one more set (textbox for the timestamp and the textbox for the task) of form fields.

That is how it should look like

Timestamp Task
26.07.02 00:30 writing down my problem
26.07.02 00:40 going to bed... ;)

I am not quite sure if something like that is possible.

Thanks for your help

05-24-2004, 04:51 PM
R U talking about tables or writing lines of some_timestamp <space> some_data? Either way you can use document.write="" to change stuff. Try this:


or dynamically like:

var timestamp_variable = whatever_your_heart_desires
var data_variable = whatever_you_want
document.write="="<table><tr><td>" + timestamp_variable +"</td><td>" + data_variable + "</td></tr></table>"

Just rinse and repeat as necessary. Hope I didn't resay some stuff you already know, though. Tell me if that doesn't help.

05-25-2004, 08:16 AM
You have to use a server-side application to generate HTML/Javascript file according to the database.