Checking elsewhere with correctly blocked code and question

Checking elsewhere with correctly blocked code and question

Hi I have already posted this question but realised I had made a few mistakes. So firstly the problem again!.

I have a textarea box for user comments which will return what ever they have typed to the same page used to enter it on. However it has no code to check for existing comments and overwrites the original comment. Here is the code:

<html>
<head>
<script type="text/javascript">
function showComment(){ var data=document.getElementById("text").value;
     alert(data);
     document.getElementById("comment").style.visibility= "visible";
     document.getElementById("lab").innerHTML=data;
     }

</script>
</head>
<body>Post Comment: <br><textarea id="text" rows="10" cols="40"></textarea><br>
<label id="comment" style="visibility:hidden"><b>Comments: </b>
</label>
<label id="lab">Comments</label><br>
<input type="button" value="Post" onclick="showComment();">
</body>
</html>

Please could you channge the code so it will create a new line with the new text every time the user clicks on comments.

Kind regards.

Colin.

View Answers









Related Tutorials/Questions & Answers:
Checking elsewhere with correctly blocked code and question
Checking elsewhere with correctly blocked code and question  Hi I have already posted this question but realised I had made a few mistakes. So... no code to check for existing comments and overwrites the original comment. Here
source code for the following question
source code for the following question  source code for the fuzzy c-means
Advertisements
Checkbox blocked - WebSevices
in my database. After i refreshing the page that checkbox seats are blocked... in detail and send me code in detail. Read for more information. http
program code for this question - Java Beginners
program code for this question  QUESTION 2: Address Information Lookup Every machine on a network has a unique identifier, called an IP address, which is used for communication purposes. An IP version 4 address is made up of four
program code for this question - Java Beginners
program code for this question  QUESTION 1: Electricity Bill Tshubang Energy Pty (Ltd) is a company that supplies electricity to its customers. This company has customers in Gaborone and Francistown only. The company maintains
Plz give me code for this question
Plz give me code for this question  Program to find depth of the file in a directory and list all files those are having more number of parent directories
ModuleNotFoundError: No module named 'elsewhere-db'
ModuleNotFoundError: No module named 'elsewhere-db'  Hi, My Python... 'elsewhere-db' How to remove the ModuleNotFoundError: No module named 'elsewhere-db' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'elsewhere-login'
ModuleNotFoundError: No module named 'elsewhere-login'  Hi, My... named 'elsewhere-login' How to remove the ModuleNotFoundError: No module named 'elsewhere-login' error? Thanks   Hi, In your python
Comparing arrays not working correctly?
Comparing arrays not working correctly?  Comparing arrays not working correctly
ModuleNotFoundError: No module named 'blocked-matrix-utils'
ModuleNotFoundError: No module named 'blocked-matrix-utils'  Hi...: No module named 'blocked-matrix-utils' How to remove the ModuleNotFoundError: No module named 'blocked-matrix-utils' error? Thanks   Hi
pl z provide code for below question in javascripr or jsp - JSP-Servlet
pl z provide code for below question in javascripr or jsp  Once the parallel request happened, the user will not be able to continue his work, until... Friend, Please clarify your question. Thanks
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  1) Copy one file content to other? 2) Count the number of words in a file
please any one can help me to write a code for this question?
please any one can help me to write a code for this question?  Q 1) In a class first day 25 students are joined. After two days that total students will increased to 60. We can develop a program by using ArrayList concept
UITextfield checking
UITextfield checking  hello,, how can i check UITextfield length or any specific value..   hii,ADS_TO_REPLACE_1 here is some code for textfield checking if ([name.text isEqualToString:@"hello
checking the data
checking the data  Sir, I have built an application where a user types a long string as input. Then after he/she types a single word of that string. I'm supposed to show all strings which have that word in them. Ex. the string
question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word
FORM Tag Correctly for Uploading Files.
FORM Tag Correctly for Uploading Files.  How To Write the FORM Tag Correctly for Uploading Files?   Hi friends, When you clicks the submit... process to work. The following PHP code, called logo_upload.php, shows you
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
Question
Question   When there is an exception in my program how java runtime system handles
Dirty Checking In Hibernate Example
Dirty Checking In Hibernate Example  What is the example of Dirty Checking in Hibernate? Give me some of the example code? Thanks
xor operator not working correctly with array
xor operator not working correctly with array  main { int a[2...] ^= a[0]; //a[0] ^= a[1]; //this is working correctly. a[0] ^= a[1] ^= a[0] ^= a[1]; //this didn't work correctly why? printf("after swapping: %d %d\n
question
question  Hi how to send an error message to an html page after checking the database for different users.for eg:your user name or password is incorrect.reply me with code, without using bean
Just checking elswhere
Just checking elswhere  I have been posting some questions within... question I was looking for is: I have a textarea box which post a single users... is the current code which does the job but it only allows a single comment on the page
question
question  Dear sir i had some typing mistake at previous question so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
question
question  Hi good morning sir, how to send an error message to an html page after checking the database for different users.for eg:your user name or password is incorrect.reply me with code, without using bean.using servlet,html
How To Write the FORM Tag Correctly for Uploading Files?
How To Write the FORM Tag Correctly for Uploading Files?  How To Write the FORM Tag Correctly for Uploading Files
question
question  Gud morning sir, I have asked u some question regarding jsp in saturaday for that i didnot find any answere in which u send me the some...   Hi Friend, Try the following code: <html> <head> <
Data is not inserting correctly in mysql database.
Data is not inserting correctly in mysql database.  Hello Sir, below is my code to insert data into database by list iteration... for each data cloumn ..at the time of end of the query... PLz see my code and point my
Dirty Checking In Hibernate Example
Dirty Checking In Hibernate Example  What is the example of Dirty Checking in Hibernate? Give me some of the example code? Thanks   The Dirty Checking In Hibernate is used to track the status of the entity and detect
Question?
Question?  My question is how to: Add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog
ModuleNotFoundError: No module named 'checking'
ModuleNotFoundError: No module named 'checking'  Hi, My Python... 'checking' How to remove the ModuleNotFoundError: No module named 'checking... to install padas library. You can install checking python with following
question
question  i need a simple jsp code for monthly salary calculation
question
question  i need a simple jsp code for monthly salary calculation
question
question  i want the code of multiplication of two numbers with swing
question
question  i used the following code to disable browser back page javascript:window.history.forward(1); but not worked .please give the correct code to disable back page using jsp or javascript
question
question  i didn't get the following code. select count(*)from leavetbl where date=2011-06-30 i need a mysql +jsp code to get select count(*)from leavetbl for a perticular date
Question
Question  how to use JSP Action Tags in the JSP application?please give me an code example
question
question  Good Afternoon, code to display the employees on leave,and approve that leave for manager.using JPanel+mysql+Java
question
question  i need a jsp code to download images from a folder in eclipse
question
question  i need a simple code to display all employees on leave using jsp and mysql
question
question  i need a simple javascript or jsp code to send message from one mail to another mail
question
question  i need a simple jsp + mysql code for trigger after insert
question
question  i need a code for time comparison in the basis of hour in java, based on grigorian calendar
question
question  please give me a full code for time comparison with the system time for eg: if(time<=12
question
question  i need a sample java code for concept based user profile, and search engine personalization
question
question  Please give me a code for search engine using java and mysql
question
question  Good afternoon Sir, please send me the Java source code for Search engine

Ads