First of all, thank you very much. Your help worked.
I have another question now, I'm trying to follow along on the video of the kendo ui datasource on youtube.
When the person instructing the screencast moves on to adding in a "POST" to the json file, I get confused.
Because he "reads" from "/weapons.json" but when he "creates" he does it to "/weapons/create.json". Is this a separate json file?
At the same time, I want to be able to achieve what he did, as in create a new item in his json file. Can you please instruct me on how to do so?
I will attach my current html and json file.
Please help,
Thanks,
P
0
Atanas Korchev
Telerik team
answered on 30 Dec 2011, 10:04 AM
Hello,
In the video create.json is a remote service which creates items. There is no way to write to JSON files entirely from JavaScript. You need to implement some server side endpoint which will write to the file. We have a few blog posts showing how CRUD works: