Create new line

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • juicy

    Create new line

    I am not sure I post to correct forum or not, anyway, my question is

    I create some textfield in tabular format (in loop 10 times). Now I want
    to add function "add new line" where I click ADD, it will create new text
    field shown in the form, is it possible to do?

    Sorry that my question is not clear as I am newbie in this field.
    Thanks.

  • Andy Jeffries

    #2
    Re: Create new line

    On Fri, 24 Mar 2006 02:00:03 -0500, juicy wrote:
    [color=blue]
    > I am not sure I post to correct forum or not, anyway, my question is
    >
    > I create some textfield in tabular format (in loop 10 times). Now I want
    > to add function "add new line" where I click ADD, it will create new text
    > field shown in the form, is it possible to do?
    >
    > Sorry that my question is not clear as I am newbie in this field. Thanks.[/color]

    It's possible, but you're looking for a Javascript newsgroup.

    Cheers,


    Andy

    --
    Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
    http://www.gphpedit.org | PHP editor for Gnome 2
    http://www.andyjeffries.co.uk | Personal site and photos

    Comment

    • Jerry Stuckle

      #3
      Re: Create new line

      juicy wrote:[color=blue]
      > I am not sure I post to correct forum or not, anyway, my question is
      >
      > I create some textfield in tabular format (in loop 10 times). Now I want
      > to add function "add new line" where I click ADD, it will create new text
      > field shown in the form, is it possible to do?
      >
      > Sorry that my question is not clear as I am newbie in this field.
      > Thanks.
      >[/color]

      Hi, Juicy,

      Sure, it's possible. It will take a little work but not too bad.

      Submit the form back to the same page. Keep track of the number of lines
      currently being displayed, probably in a hidden field. Then simply add one to
      the count and run your loop again.

      Don't forget to fetch the data from the existing page and add it when you build
      the new page.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      Working...