Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions Just checking elswhere
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Colin Lansdown
Just checking elswhere
0 Answer(s)      3 years and 4 months ago
Posted in : JavaScript Questions


I have been posting some questions within the HTML group but getting no joy. I thought I would try another area.

The main question I was looking for is: I have a textarea box which post a single users comment back to the same html page they enter the text. However what I wanted it to do is add other comments rather than overwriting the orignal. Here is the current code which does the job but it only allows a single comment on the page.

<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 can you help?.

Colin


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Just checking elswhere
Just checking elswhere  I have been posting some questions within the HTML group but getting no joy. I thought I would try another area. The main question I was looking for is: I have a textarea box which post a single users
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... the user types the keyword "pay". I'm just not able to solve this problem
Advertisements
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
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
php dynamic array checking
php dynamic array checking  php dynamic array checking
php dynamic array checking
php dynamic array checking  php dynamic array checking
Dirty Checking In Hibernate Example
Dirty Checking In Hibernate Example  Hi, What is Dirty Checking... Checking In Hibernate is an mechanism for automatically detects the changes in the state of an Entity. Check tutorial at Dirty Checking In Hibernate section
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
Dirty checking feature of hibernate.
Dirty checking feature of hibernate.  What is the dirty checking feature of Hibernate?   Hi friends, Dirty checking is a feature of hibernate. It allows the user or developer to avoid the time consuming databases
checking index in prepared statement
checking index in prepared statement  If we write as follows: String query = "insert into st_details values(?,?,?)"; PreparedStatement ps = con.prepareStatement(query); then after query has been prepared, can we check the index
Hibernate Dirty Checking
This section contains the concept of Hibernate dirty checking
Validaton(Checking Blank space) - Spring
Validaton(Checking Blank space)  Hi i am using java springs .I am having problem in doing validation. I am just checking blank space. This is my controller. I named it salescontroller. package controller; import
just a short question.!!
just a short question.!!   Can anyone help me with this short question? please :) **What is printed by the following C++ code? cout <<
just askin - Java Beginners
just askin  were can i find a website,, who have a java bean program which include its code, algorithm and flowchart? plsss
What is the dirty checking feature of Hibernate?
What is the dirty checking feature of Hibernate?  What is the dirty checking feature of Hibernate?   Hibernate allows dirty checking... process of updating the changed object is called automatic dirty checking. Dirty
Checking the CustomItem in j2me support traversal or not?
Checking the CustomItem in j2me support traversal or not?  Hi, How should i check the CustomItem in j2me support traversal or not. Thanks & Regards, Sivakumar.J
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
Checking the decimal whether comma used or not
Checking the decimal whether comma used or not  I need to check the given integer whther comma used or not. For example. If the user given 123456 The output should be like 123,456 If the user given 123,456 The output should
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 of a product in java...my back end connectivity is ms-access from the database ,i hv
Checking whether a year is leap or not
Checking whether a year is leap or not       This tutorial is going to teach you the coding for checking whether a year is a leap year or not. Here, we have taken the year 2000. So
Dirty Checking In Hibernate
Dirty Checking In Hibernate In this section we will read about the dirty checking in hibernate. Dirty Checking is the feature of hibernate that helps... for dirty checking. In an inspection strategy, a snapshot of the object
How to Checking Syntax Error in PHP from Command Line
How to Checking Syntax Error in PHP from Command Line  Checking... syntax without running the code. Just use the ?? l switch with php command... check this: http://www.phpzag.com/checking-syntax-error-in-php-from-command-line
IFrame.IN- Just Another Encode Tools
IFrame.IN- Just Another Encode Tools       This site will help you quickly encode and obfuscate your HTML/JavaScript code many different methods, as well as generate browser redirect
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
class NSCFString autoreleased with no pool in place - just leaking
class NSCFString autoreleased with no pool in place - just leaking  Hi, In my application following error is coming: class NSCFString autoreleased with no pool in place - just leaking What is the solution? Thanks
Just-In-Time Manufacturing (JIT)
Just in time is a concept of zero wastage production in project management... by reducing wastage. Basically, Just-In-Time Manufacturing (JIT) production... required amount of goods on demand and thus avoids stock. Thus, in Just in time
Exceptions Rethrowing with Improved Type Checking
Exceptions Rethrowing  with Improved Type Checking In this section... checking. Take a a look at the following code having improved type checking of Java... extends Exception { } The third class, containing improved type checking
Logic and desgin HELP just need to get started on this.
Logic and desgin HELP just need to get started on this.   Write a program that accepts five homework scores as input values and stores them into a table (which is another name for an array). Once the scores are in the array, we
Just Got The New iPad? Getting Started?
Just Got The New iPad? – Getting Started Since its release in early... in the range. If you have just bought the device there a number of things you... with the perfect platform. These are just some of the basics you should be aware
Is It Possible To Make $5,000 By Writing Just One Article?
Is It Possible To Make $5,000 By Writing Just One Article?       In today's competitive market... in today's times. General writers as well as specialist medical writers just can't
Advertisements
 

 

 

DMCA.com