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 9207237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:20:40+00:00 2026-06-18T00:20:40+00:00

I currently have a javascript library that is using a JSON file to print

  • 0

I currently have a javascript library that is using a JSON file to print them on the screen in an interactive way. (::We are using D3JS Library)

When we are on a client, we can easily delete, edit and create some nodes, that are updated in the JSON every 5-10 seconds.

The problem comes from two main facts :

  • First the automatic function that call itself every x seconds could make data corruption if we are doing some stuff on the datas already represented on the screen.
  • Then the project has been made in order to permit 5 people to interact together. When they are present onto the same session we cannot decently make them refresh every 5 seconds, that cause many overhead and doesn’t avoid data corruption.

We have mainly thought about a solution only made with javascript and some AJAX but we realize that it should be reconsidered with a trigger that inform the client that the datas are no longer OK.

We are thinking currently about opening a script onto a server in order to attribute on each client an ID.

The goal would be to detect the modification done on the JSON file (on the server). But the point where we are stuck is :

1) Is there a best scripting language to interact server/web?
2) Which type of things should we use to make the clients update their datas? (socket right?)

About the second point the easiest way would be to call a JS function be we aren’t aware of the possibilities given by the shell codes…

Sorry about the fact that we are happy developpers but maybe not enough skilled to solve this problem.

Thanks for your helps !

  • 1 1 Answer
  • 0 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-06-18T00:20:41+00:00Added an answer on June 18, 2026 at 12:20 am

    You can achieve that using pure javascript with the new WebSocket feature.

    http://www.html5rocks.com/en/tutorials/websockets/basics/

    Edit:

    WebSocket is a web technology providing full-duplex communications channels over a single TCP connection. The WebSocket API is being standardized by the W3C, and the WebSocket protocol has been standardized by the IETF as RFC 6455.

    WebSocket is designed to be implemented in web browsers and web servers, but it can be used by any client or server application. The WebSocket Protocol is an independent TCP-based protocol. Its only relationship to HTTP is that its handshake is interpreted by HTTP servers as an Upgrade request.[1] The WebSocket protocol makes possible more interaction between a browser and a web site, facilitating live content and the creation of real-time games. This is made possible by providing a standardized way for the server to send content to the browser without being solicited by the client, and allowing for messages to be passed back and forth while keeping the connection open.

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

Sidebar

Related Questions

I can currently see which keys are pressed using JavaScript, using a library that
I currently have a Javascript function that uses a string to reference an object
We currently have a tool on our website that is created by JavaScript. The
I am currently trying to pass an array that I have created in Javascript
I'm currently using JavaScript (CommonJS) in Titanium Studio and have a question about prototyping.
I have an interesting problem. I currently have a basic template library that renders
I currently have a WebSocket server (C#) and a client (JavaScript / HTML5). This
I'm currently stuck using several JavaScript libraries that MUST load in a very specific
Currently I have implemented a Javascript Ajax search where if user types a city
Here is the Javascript I currently have <script type=text/javascript> $(function() { $('.slideshow').hover( function() {

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.