473,320 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Display textbox value below textbox and store previous messages

hi all..
I m new to html....In my html page i place one multiline textbox...My query is when i enter data into textbox and click submit button..i have to display dat message in below to the textbox..and i have to display all previous msgs also...means add all values one below one...how to do thiis by using html and javascript...and how to store previous values ..

Thanks....
Aug 4 '08 #1
10 23123
acoder
16,027 Expert Mod 8TB
What have you managed so far?

If you can only use JavaScript and have no server-side language, then you can use cookies, but there's a limit to how much you can store.
Aug 4 '08 #2
i can use java script and html also...
Aug 4 '08 #3
Hi all,
I am using html textbox...when i click submit button i have to display that value into below the text box..How to get the text box value by using html/Javascript????
Thank You
Aug 4 '08 #4
acoder
16,027 Expert Mod 8TB
I know, you said that in the original post. The question is can you use a server-side language, e.g. ASP, PHP, JSP, Perl, Coldfusion?
Aug 4 '08 #5
hsriat
1,654 Expert 1GB
Make a div below the textarea, and add the code to the onclick event of required button/link.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('divID').innerHTML = document.forms['formName'].textareaName.value;
  2. //where
  3. //divId = id of the div
  4. //formName = name of the form
  5. //textareaName = name of the textarea
Aug 4 '08 #6
Hi

You can use the id attribute of HTML textboxes to access them in javascript.
e.g.:

<input type="text" id="txt1" />
<input type="text" id="txt2" />

To set the value of txt2 textbox you can use simple HTML button.

<input type="button" id="btn" value="Click">


Use the following javascript code to get and set the values of textboxes:

document.getElementById('txt2').value = document.getElementById('txt1').value;

Apply the above javascript code onclick event of button.

I hope this will do...
Aug 6 '08 #7
acoder
16,027 Expert Mod 8TB
Moved to JavaScript and merged threads.

Moderator.
Aug 6 '08 #8
RamananKalirajan
608 512MB
Hi Lakkhi, I am not getting you rrequirement. You are using one HTMl text Box in a page and you are entering some values in that text box after you submit it must move to the next HTML page were you have to display the entered message in a text box in the new page. Or you are having two text boxes in a same page when u click a button content of the first text box should be concatenated with the content of the second text box. please mention ur requirement clearly. I will try to help u out.

Regards
Ramanan Kalirajan
Aug 7 '08 #9
Hi lakki

I think you are trying to concatenate the old and new messages in the second textbox one below another. Then, you have to use HTML textarea control to display each message retrieved from first textbox in new line.

Consider my previous code:

Use += instead of only = sign in javascript code. And concatenate + "\n" at the end of assigned value to textarea.

Try this. Otherwise send more information about your problem.
Aug 7 '08 #10
can you help me please, im trying to develop a website, can you show me how to create to text box and a command button so that when the user enters data in the tex box, i want the button to be able to save the data to a text file. thank you
Aug 21 '10 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: anonieko | last post by:
This applies to javascript dynamic textbox onkey > > > Newsgroups: comp.lang.javascript From: Lasse Reichstein Nielsen <l...@hotpop.com> - Find messages by this author Date: Fri, 15 Jul 2005...
0
by: Mark | last post by:
All, Excuse the re-post but I have found something which works for the UserID but not for the Password (see previous post below). The problem is I don't understand how it works and therefore...
5
by: sparks | last post by:
After trying a combo box to do this. its tied to a lookup table name value yes 1 no 0 they wanted to be able to type in a 1 but display a yes in the field. and store a 1 in the...
1
by: David Smith | last post by:
What I want to be able to do: A textbox is available that the user can enter information into. Specifically (for the purposes of this post), the user is asked to enter a number, and that number...
1
by: Sean | last post by:
hi, i have a radiobuttonlist which i have set the autopostback feature to false, so it would be easier to navigate thru' it, using the keyboard. below the radiobuttonslist, i have a textbox...
5
by: Steve S | last post by:
Heres what I want to do...User types into a texbox, clicks a button, the button saves that text to a file. The problem is that when I click the submit button, any changes made to the textbox are...
2
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
2
by: j.m.osterman | last post by:
I haven't found exactly what I've been trying to do. All I am trying to do for now is just display usernames from Active Directory into a ListBox control on a page. I have found some code...
4
by: rszebras | last post by:
I inherited a database (as a novice at Access) and need to modify it to make it more efficient, i.e., the assignment form needs to autopopulate with the client's name, address, phone number, etc.,...
6
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
I use datagrid to store XML file information for selecting a XML from database, and a textbox, txtXML, for displaying a selected XML. When I dispaly a XML in the textbox at firstime, it OK. But...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.