Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1022795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:31:06+00:00 2026-05-16T11:31:06+00:00

I am working on designing a collaborative system where multiple users can edit the

  • 0

I am working on designing a collaborative system where multiple users can edit the same document, much like googledocs, and I guess ‘search suggestions’, but in no way as advanced.

My question is this, will my design work? I know enough php/ajax to design this, using jQuery for the ajax part. But I have never made such a system, and therefore the design may have huge flaws.

The editable part of the webpage is a table, where certain cells can be edited (again much like google docs spreadsheets).

In theory this will work, whenever a tables cell is changed, the changes are stored in a history, and every 1000ms (after the last post returned successfully) I post the cell changes to a server

Simultaneously, another ajax function polls the server (also every 1000ms after the last call return successfull) and asks for a list of changes done to all the cells.

Is this the simple way of how google does it?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:31:07+00:00Added an answer on May 16, 2026 at 11:31 am

    This is a debatable subject and most solutions depend on requirements and use cases rather than what’s “correct”. One of the more complex solutions is to use Semaphore:

    http://en.wikipedia.org/wiki/Semaphore_(programming)

    The railroad semaphore flag:
    http://en.wikipedia.org/wiki/Railway_semaphore_signal

    That said, in your case, I suspect the “last value written” should be used. Simply have every edit queued on the server and then applied to it’s cell. Obviously, there will be cases where data is inappropriately overwritten, but that’s where human’s come into play.

    You could choose to detect when two users have focused and are editing the same cell — when this occurs, send a notice to each use that their changes may conflict with another user. The least-aggressive user will back off and go do something else. Obviously there are more cases such as mass-edits but again, this all depends on your requirements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on designing a friend system for my site. I have a USERS
I'm working on designing a REST API that can respond with a variety of
I'm working on designing a game with multiple levels and was wondering if I
I'm working on a project with designing a core data system for searching and
I have been working on Flash AS3 project. I am designing a 3D system.
We are working on designing an application that is typically OLTP (think: purchasing system).
I'm working on designing an EDI system for two companies: Company A and Company
I am working on designing trade system using Java Realtime ( Sun JRTS 2.2
I am working on designing a small system and am wondering about a nuance
I am currently working on designing my first FPS game using JOGL. (Java bindings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.