how to update the json file from extjs [closed]

痞子三分冷 提交于 2019-12-13 09:23:15

问题


Can you please tell me how I can update the data from my extjs datagrid to JSON file?. My code works fine for loading static data from JSON file. Also, the data gets updated when I edit the data. But I am not aware how to store the updated data to JSON file so that it will be reflected even when I do page refresh or bounce my server.

Thanks

Murali S


回答1:


You can't just update a json file, something on the server (PHP, Java, C#, other) need to do it. If you could just directly update a static file from the client, it would be a giant security hole.

There are examples in the Ext JS SDK that show you how to send data to the server and persist it.



来源:https://stackoverflow.com/questions/15422403/how-to-update-the-json-file-from-extjs

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