Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Bern, Switzerland
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question adding textboxes to a form

    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

  • #2
    New Coder
    Join Date
    May 2004
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh

    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:

    document.write="<table><tr><td>some_timestamp</td><td>some_data</td></tr></table>"

    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.

  • #3
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    You have to use a server-side application to generate HTML/Javascript file according to the database.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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