Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Post a Comment with JavaScript

Post a Comment with JavaScript

Scheduled Pinned Locked Moved Web Development
javajavascripthtmlcsstools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    wartotojas
    wrote on last edited by
    #1

    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.

    J 1 Reply Last reply
    0
    • W wartotojas

      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.

      J Offline
      J Offline
      Joe Simes
      wrote on last edited by
      #2

      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).

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups