Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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: 6920
  • 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/ .
 
reply
    Bookmark Topic Watch Topic
  • New Topic