Save data into file using jquery

白昼怎懂夜的黑 提交于 2019-12-12 03:27:47

问题


I am developing a webpage using jquery which let me manipulate images easily.

I have set some buttons in which a client (through a browser) can input some information (for example "0" or "1"). My main problem is that I need to save that information into a file in the server, and I have not found a easily way to do it.

Any suggestion to do that? I have read that using ajax it can be done, but I am very confused about using it.

Thanks in advance for any help.


回答1:


You will not be able to write a file directly to the server using jQuery. You will need to do this with a server-side language like php, ruby, python, java, node.js etc. You would use AJAX to make a request to your server-side application written in a language like the one's I previously mentioned.



来源:https://stackoverflow.com/questions/14286015/save-data-into-file-using-jquery

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!