Post a Comment with JavaScript
-
Hi everybody, I am building a website, it is just educational purpose website which will probably will not be hosted. and Im looking for a JavaScript that wuold allow add comments (lets say I make a post on my Blog manualy updating HTML source code and others could add a comment from the text box or something like that). What I am thinking is there any java script that enable lets say wrap a text from text box after pressing 'submit' button to <div> tags from my CSS and automaticaly update source code of HTML? Hope I was clear enough for what I am looking, Thanks for any help in advance. Domas.
-
Hi everybody, I am building a website, it is just educational purpose website which will probably will not be hosted. and Im looking for a JavaScript that wuold allow add comments (lets say I make a post on my Blog manualy updating HTML source code and others could add a comment from the text box or something like that). What I am thinking is there any java script that enable lets say wrap a text from text box after pressing 'submit' button to <div> tags from my CSS and automaticaly update source code of HTML? Hope I was clear enough for what I am looking, Thanks for any help in advance. Domas.
wartotojas wrote:
automaticaly update source code of HTML
It would be highly unlikely that you would find something that would do this. most sites that allow commenting on articles are database driven. The articles would live in a article table and the related comments would live in a comments table. These two tables would be joined by a common id number (meaning you would put the article id in the comments table). You could use JavaScript to add the comments to the database and also to push the comment dynamically to the document (to a DIV or a SPAN). AJAX is good for this type of thing (kinda like Facebook and it's commenting system).