Home Answers Viewqa JavaScriptQuestions Checking elsewhere with correctly blocked code and question

 
 


Colin Lansdown
Checking elsewhere with correctly blocked code and question
0 Answer(s)      a year and 10 months ago
Posted in : JavaScript Questions

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 Pages:
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
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
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
Checking Classpath Validity - Java Tutorials
Checking Classpath Validity 2001-12-13 The Java Specialists' Newsletter [Issue 037] - Checking that your classpath is valid Author: Sydney Redelinghuys..., let's see what Sydney, the one-legged Java Guru has to say ... Checking Your
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
UITextfield checking
UITextfield checking  hello,, how can i check UITextfield length or any specific value..   hii, here is some code for textfield checking if ([name.text isEqualToString:@"hello"]) or if (name.text.length<1
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
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
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
Text box Checking
Text box Checking  I want to Write only the word A-Z in a text box What is the code
Error in checking null value in string
Error in checking null value in string  Error in checking null value in string Hi am getting Exception : java.lang.NullPointerException in the following code: String registerno=null; registerno=request.getParameter("registerno
stock checking in java with backend as access
stock checking in java with backend as access  Hi, I am doing a project in java,Can i able to know how to check the stock availability... get a source code for this program
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
Checking whether a year is leap or not
Checking whether a year is leap or not   ... for checking whether a year is a leap year or not. Here, we have taken the year 2000. So....    Here is the code of program:    
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... Friend, Try the following code: <html> <head> <script>
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 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
question
question  Sir, please give me a simple jsp code to upload images to a folder
question
question  Good Morning Sir, Please give me Java source code for Peer-to-Peer Streaming
question
question  Sir, Please give me a source code for client server socket programing in java
question
question  Sir, Please send me Java Swing source code for video streaming , it's very urgent
question
question  Good after noon Sir, Please send me the code of the problem given below.it's urgent code to display employees on absent and manager can approve,and send a notification message to an employee.using JPanel+mysql+Java
Question
,the questions like find out the result of given code(to find out result from the given code). please also send me the answers with the questions
question
question  i need a code to get current time only in jsp or mysql.i don't need date with time,need current time only
question
question  Good afternoon Sir, i need a code to inser url in to table using mysql + jsp Please help me it's urgent
question
question  good morning, please give me a jsp+mysql code to calculate monthly salary according to salary.i have two off days per month except... can't create a code for this.please send me a model jsp +mysql code to calculate
question
question  Good Afternoon Sir, give me the source code to submit attendance to data base using System IP Address with system date and time.using JPanel+mysql+java
question
question  good afternoon sir, please send me a simple Jsp or Java code to display a calendar with Indian public holidays,current date and time.It is very urgent,please consider and me as soon as possible
question
question  i need a simple jsp + mysql code to display all absentees.and please send,if have any option to send any notification message to user who forgot to mark attendance
question
question  Good morning sir, i need a jsp and mysql code to track attendance immediately,and if you have any idea about how to take absentees please send me that too
question
question  i am using this code in my project response.sendRedirect("LoginForm1.jsp?msg=Username or Password is incorrect!"); but i wan't to hide this message from url.please help me
question
question  good afternoon , i wan't to check username colomn values of employee table is also present in attendance table.for example username john is also in attendance.please give me mysql+jsp code
question
question  SELECT * FROM table WHERE amount > 1000 AND MONTH(date) = MONTH('$m') AND YEAR(dateStart) = YEAR('$m') i can't work with this code please currect
question
question  do you have any idea about the following concept,give me Java code for A COMPARATIVE STUDY ON PERSONALIZATION IN INFORMATION RETRIEVAL WITH SHARING OF THE CONCEPT BASED USER PROFILES using Java
question
question  Sir, How to stream video on one computer which is playing on another PC in LAN using java + socket / RMI . if you have any idea about that please help me and give the source code