Skip to content
Advertisement

Update External local Json file with values updated from front end datatable?

I have a written a code which get value from a local json file and displays it in a table format. I have made the table editable using html5 editable tag .

Now i want when someone updates the cell in the datatable i ant to update the external local json file. without using any server side technology i can use jquery js anything without server side implementation is that possible .

here is my code so far

JavaScript

Advertisement

Answer

There is no way for a web browser to write arbitrary data to a web server, and you wouldn’t like it if it was possible (you’d last about 5 minutes before your site was overwritten with something unpleasant).

You need server side technology to edit the content on the server (and you almost certainly would want it to include authentication/authorization checks).

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement