Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default textarea value

    I am trying to collect the value of an HTML textarea. The problem I am
    having is that I only can get he first line in the textarea.

    When a user uses a return/enter at the keyboard, asp won't pick up the
    textarea value after the first line of the textarea.

    Any suggestions

    [email]jbarnes@ci.mcminnville.or.us[/email]


    John B Guest

  2. Similar Questions and Discussions

    1. TextArea
      I am making a simple blog, and was wondering if anyone had any suggestions on making a wysiwyg editor. I want to try and make it as much cross...
    2. Printjob for TextArea
      Below the code snipped :Q: it works fine and print the textarea. But it prints only the visible Textarea and ignores the rest of the text(that...
    3. textArea formatting
      I am using a php html form with data which is loaded from a mysql database. Three of the fields are textareas. The data loads into these fields...
    4. Removing carriage returns from <textarea></textarea> input
      Hiya, I have a form with a <textarea></textarea> to receive user input. This input is then stored in a database and sent by fax... I need to...
    5. <textarea> bug????
      Simple vbscript,html page loading into access. Input pg posting to Confirm pg, then sending to access. when using; <textarea name="name"...
  3. #2

    Default Re: textarea value

    How are you determining that that is what's happening, and what code are you
    using to insert the value and display it then after the fact?

    Ray at home

    "John B" <barnesjtsl@yahoo.com> wrote in message
    news:OoTGUA82DHA.1532@TK2MSFTNGP10.phx.gbl...
    > I am trying to collect the value of an HTML textarea. The problem I am
    > having is that I only can get he first line in the textarea.
    >
    > When a user uses a return/enter at the keyboard, asp won't pick up the
    > textarea value after the first line of the textarea.
    >
    > Any suggestions
    >
    > [email]jbarnes@ci.mcminnville.or.us[/email]
    >
    >

    Ray at Guest

  4. #3

    Default Re: textarea value

    I use the code below to updata the database with the textarea.value
    ("sugg").
    I then open the database in Access and see that it is only updating the
    first line.
    I am not displaying the data on a page as yet. I will view it through an
    Access form.

    Thanks for your help,

    JB


    strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" &
    server.MapPath("pagedata.mdb")
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open strconn
    Set recset = Server.CreateObject("ADODB.Recordset")
    recset.Open "suggest", conn, 2, 2

    recset.AddNew
    recset("suggestions") = Request.Form("sugg")
    recset.Update
    recset.MoveLast

    Set conn = nothing
    Set recset = nothing


    "Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
    news:e3iepI82DHA.1632@TK2MSFTNGP12.phx.gbl...
    > How are you determining that that is what's happening, and what code are
    you
    > using to insert the value and display it then after the fact?
    >
    > Ray at home
    >
    > "John B" <barnesjtsl@yahoo.com> wrote in message
    > news:OoTGUA82DHA.1532@TK2MSFTNGP10.phx.gbl...
    > > I am trying to collect the value of an HTML textarea. The problem I am
    > > having is that I only can get he first line in the textarea.
    > >
    > > When a user uses a return/enter at the keyboard, asp won't pick up the
    > > textarea value after the first line of the textarea.
    > >
    > > Any suggestions
    > >
    > > [email]jbarnes@ci.mcminnville.or.us[/email]
    > >
    > >
    >
    >

    John B Guest

  5. #4

    Default Re: textarea value

    Are you sure it's not just that the Access form is only displaying one line?
    Look in the table itself and increase the height of your eyes to be sure.

    Ray at home

    "John B" <barnesjtsl@yahoo.com> wrote in message
    news:%23zwYVT82DHA.1924@TK2MSFTNGP10.phx.gbl...
    > I use the code below to updata the database with the textarea.value
    > ("sugg").
    > I then open the database in Access and see that it is only updating the
    > first line.
    > I am not displaying the data on a page as yet. I will view it through an
    > Access form.
    >
    > Thanks for your help,
    >
    > JB
    >
    >
    > strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" &
    > server.MapPath("pagedata.mdb")
    > Set conn = Server.CreateObject("ADODB.Connection")
    > conn.Open strconn
    > Set recset = Server.CreateObject("ADODB.Recordset")
    > recset.Open "suggest", conn, 2, 2
    >
    > recset.AddNew
    > recset("suggestions") = Request.Form("sugg")
    > recset.Update
    > recset.MoveLast
    >
    > Set conn = nothing
    > Set recset = nothing
    >
    >
    > "Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
    > news:e3iepI82DHA.1632@TK2MSFTNGP12.phx.gbl...
    > > How are you determining that that is what's happening, and what code are
    > you
    > > using to insert the value and display it then after the fact?
    > >
    > > Ray at home
    > >
    > > "John B" <barnesjtsl@yahoo.com> wrote in message
    > > news:OoTGUA82DHA.1532@TK2MSFTNGP10.phx.gbl...
    > > > I am trying to collect the value of an HTML textarea. The problem I
    am
    > > > having is that I only can get he first line in the textarea.
    > > >
    > > > When a user uses a return/enter at the keyboard, asp won't pick up the
    > > > textarea value after the first line of the textarea.
    > > >
    > > > Any suggestions
    > > >
    > > > [email]jbarnes@ci.mcminnville.or.us[/email]
    > > >
    > > >
    > >
    > >
    >
    >

    Ray at Guest

  6. #5

    Default Re: textarea value

    "John B" wrote:
    : I use the code below to updata the database with the textarea.value
    : ("sugg").
    : I then open the database in Access and see that it is only updating the
    : first line.
    : I am not displaying the data on a page as yet. I will view it through an
    : Access form.

    It's not textarea.value. It's textarea.innerHTML. Perhaps showing your
    form would help?!
    [url]http://kiddanger.com/lab/textarea.html[/url]

    --
    Roland

    This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose.
    -Technet Knowledge Base-
    [url]http://support.microsoft.com/default.aspx?scid=fh;EN-US;kbhowto&sd=TECH&ln=EN-US&FR=0[/url]
    -Technet Script Center-
    [url]http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp[/url]
    -MSDN Library-
    [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  7. #6

    Default Re: textarea value

    "Roland Hall" wrote:
    : "John B" wrote:
    : : I use the code below to updata the database with the textarea.value
    : : ("sugg").
    : : I then open the database in Access and see that it is only updating the
    : : first line.
    : : I am not displaying the data on a page as yet. I will view it through
    an
    : : Access form.
    :
    : It's not textarea.value. It's textarea.innerHTML. Perhaps showing your
    : form would help?!
    : [url]http://kiddanger.com/lab/textarea.html[/url]

    Ok, strike that. It appears textarea.value also works even though there is
    no value= for textarea. *throws hands in the air* My example still works
    but apparently your error is somewhere else.

    [url]http://www.htmlhelp.com/reference/wilbur/form/textarea.html[/url]
    To supply default text for the text area, put it inside the TEXTAREA tag.
    You may not use markup for this default value.

    [url]http://www.w3.org/TR/REC-html40/interact/forms.html#edef-TEXTAREA[/url]

    --
    Roland

    This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose.
    -Technet Knowledge Base-
    [url]http://support.microsoft.com/default.aspx?scid=fh;EN-US;kbhowto&sd=TECH&ln=EN-US&FR=0[/url]
    -Technet Script Center-
    [url]http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp[/url]
    -MSDN Library-
    [url]http://msdn.microsoft.com/library/default.asp[/url]


    Roland Hall Guest

  8. #7

    Default Re: textarea value

    You are using an Access database. What do you have the field properties set
    to? If text, the field won't accept any more characters than the field is
    setup to accept. The default is 50, maximum is 250. If you are not already
    doing so, I would suggest that you set the field to memo, instead of text.

    Steve G

    "John B" <barnesjtsl@yahoo.com> wrote in message
    news:%23zwYVT82DHA.1924@TK2MSFTNGP10.phx.gbl...
    > I use the code below to updata the database with the textarea.value
    > ("sugg").
    > I then open the database in Access and see that it is only updating the
    > first line.
    > I am not displaying the data on a page as yet. I will view it through an
    > Access form.
    >
    > Thanks for your help,
    >
    > JB
    >
    >
    > strconn = "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" &
    > server.MapPath("pagedata.mdb")
    > Set conn = Server.CreateObject("ADODB.Connection")
    > conn.Open strconn
    > Set recset = Server.CreateObject("ADODB.Recordset")
    > recset.Open "suggest", conn, 2, 2
    >
    > recset.AddNew
    > recset("suggestions") = Request.Form("sugg")
    > recset.Update
    > recset.MoveLast
    >
    > Set conn = nothing
    > Set recset = nothing
    >
    >
    > "Ray at <%=sLocation%>" <myFirstNameATlane34dotKOMM> wrote in message
    > news:e3iepI82DHA.1632@TK2MSFTNGP12.phx.gbl...
    > > How are you determining that that is what's happening, and what code are
    > you
    > > using to insert the value and display it then after the fact?
    > >
    > > Ray at home
    > >
    > > "John B" <barnesjtsl@yahoo.com> wrote in message
    > > news:OoTGUA82DHA.1532@TK2MSFTNGP10.phx.gbl...
    > > > I am trying to collect the value of an HTML textarea. The problem I
    am
    > > > having is that I only can get he first line in the textarea.
    > > >
    > > > When a user uses a return/enter at the keyboard, asp won't pick up the
    > > > textarea value after the first line of the textarea.
    > > >
    > > > Any suggestions
    > > >
    > > > [email]jbarnes@ci.mcminnville.or.us[/email]
    > > >
    > > >
    > >
    > >
    >
    >

    Steve G Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139