• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Allow editing of text on a web page? innerHTML?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to post a Daily Log of my Army unit's activities (from Vietnam)and have it editible by visitors to the site so they may fill-in the ? marks and/or spaces and make their own comments. I would also like to keep a running copy of the Daily Log. The syntax would look something like:
June 16 1970 in support of 33CP.
loh #848 took two rounds while at 30 feet and 40 knots.
Pilot ? Gunner Smith
I would like to allow a visitor to the site to be able to put in the pilots name and/or gunners first name plus whatever comments they felt appropriate.
Thanks for your help!
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without knowing more, I would say you are only asking for trouble. Whats to prevent someone from saying the pilot's name was major butthole? You can be certain they will. Whats worse is using javascript they can do even nastier things. If you are determined to do it then limit the power to known users and use a filter to filter out maliscious scripts.
 
mike allee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Randall Twede:
Without knowing more, I would say you are only asking for trouble. Whats to prevent someone from saying the pilot's name was major butthole? You can be certain they will. Whats worse is using javascript they can do even nastier things. If you are determined to do it then limit the power to known users and use a filter to filter out maliscious scripts.


Yes, I had considered this, so I was going to limit access to personal from my unit and put it on a "hidden" server.
Thanks for your reply.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I think you are looking for is something called a "Wiki" - an editable web site. The most famous example is at http://c2.com/cgi/wiki . A web search should turn up lots of examples, and I have a freely available simple one (Friki) for download (with Java source) on my web site at http://www.efsol.com/ .
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic