473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Writing a JSON file to server through Javascript

I wrote a chrome extension using javascript, which receives user inputs and using AJAX connect to PHP residing in the server to write them to specified folder in server.

I want to remove this PHP(server side) layer.
Is there any way I can directly write a JSON file to server, without the need of any server side language?

This will make my chrome extension portable across any web stack

Thanks in advance!

Please help
Aug 30 '15 #1
2 2603
Dormilich
8,658 Expert Mod 8TB
Is there any way I can directly write a JSON file to server, without the need of any server side language?
in theory you could do that through the HTTP PUT command, but having a directory writable by everyone is such a security risk, that this mechanism is almost always disabled.
Aug 31 '15 #2
This might help: JSON Formatter
Aug 19 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ishekar | last post by:
Hi, I have an application where i want to write data to a file, the data is being sent from an external source. I know the total size of the data and then i retrieve the data in small segments...
3
by: swingingming | last post by:
Hi, for 5 weeks, I finished my mdb project. Thanks to all you guys. Now, I would like to put it on a server then 5-6 people can share it. I heard about the splitting back-end database, put it on a...
1
by: admol | last post by:
I'm using the following c# code to write a file string strVCard = vcg.Generate(); FileInfo fi = new FileInfo("" + firstn + " " + lastn + "" + ".vcf"); StreamWriter sw...
7
by: Fuji | last post by:
Dear Sir, Why this code can't be ran in my Internet Explorer? Am I doing wrong in using ActiveXObjectScripting.FileSystemObject")? <html> <head><title>Reading/Writing Text File in...
1
by: Jean-Paul Calderone | last post by:
On Fri, 21 Nov 2008 00:20:49 -0200, Gabriel Genellina <gagsl-py2@yahoo.com.arwrote: If you want to try this program out on POSIX, make sure you change the time.clock() calls to time.time() calls...
2
AmberJain
by: AmberJain | last post by:
Hello, I want to restore my bookmarks from a json file in firefox. I already have some firefox bookmarks on this machine and I want to merge these existing bookmarks with another set of bookmarks...
5
by: jay patangan | last post by:
hi, gud day... i'm trying to write a program in javascript that uses .json. i already wrote one that is when i run the program, it will create a tab dynamically, using jquery, from my json data....
1
by: Kurri | last post by:
How to get the text from many CSS files and merge them into one file using javascript to avoid overhead at server side. Using C# or ASP.NET or Javascript or JQuery....
3
by: noisemaker | last post by:
json data prints values undefined via javascrpt. below is json data and javascript call that prints the data. Using javascript as showed in the code below, I was able to print and display the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.