954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

comment box

Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web.
My server does not support php or anyother special scriptin, so i believe that i have to code in javascript, can anyone please help me with the code for doing this, as to how to implement a comment box and save the comments in file using javascript.
Thanks in advance
Sarah

brainbox
Light Poster
29 posts since May 2006
Reputation Points: 10
Solved Threads: 1
 

This can't be done in Javascript since its a client side technology. The only thing a Javascript code can store on client's machine is cookies which can't exceed 4KB, so I guess its out of question.

You would require some sort of server side language with a database to store the comments.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

Are you absolutely sure you can't use php or ASP on your server. What host is it on?

roryt
Nearly a Posting Virtuoso
1,286 posts since Oct 2005
Reputation Points: 178
Solved Threads: 15
 

:) Here is the code for a comment box:

<div id="HCB_comment_box">Comments by <a href=http://www.example.com>example.com</a> are loading...</div>
 <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/shady/skin.css" />
 <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape(""+window.location).replace("+","%2B")+"&opts=406&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); if(typeof hcb_user=="undefined")hcb_user={};hcb_user.submit="";/*-->*/ </script>
TrigonSearch
Newbie Poster
14 posts since Jul 2010
Reputation Points: 10
Solved Threads: 1
 

Excellent find :)
Too bad you didn't post this solution when this thread was active - three years ago :(

fxm
Posting Pro
596 posts since Apr 2010
Reputation Points: 40
Solved Threads: 74
 

@TrigonSearch - AWESOME!!
Thank you for posting a year later - YOU SAVED ME!!

StuckAtHomeMom
Newbie Poster
1 post since Jan 2011
Reputation Points: 10
Solved Threads: 1
 

I'm using disqus.com it's good

ana10192000
Newbie Poster
13 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You