ok, using fiddler and chrome tools I don't see a POST go out to my web service for the following when using "people.add"
i have read posts for hours and hours...tried almost everything i read and can't get the create to POST to my web service.
Thanks for any help.
Richard
var
people =
new
kendo.data.DataSource({
transport: {
read: {
type:
'GET'
,
//url being set dynamically and works fine for the read
dataType:
'json'
},
create: {
url: uri,
//http://wwww.mysite.com/api/people
type:
'POST'
,
dataType:
'json'
}
}
});
//the call:
// data structure on web api POST has same fields as below
//the "add" is working locally but a POST is never made back to the remote web api
// i have tried with and without the JSON.stringify
people.add(JSON.stringify({FirstName: $(
"#bfname"
).val(), LastName: $(
"#blname"
).val(), Phone: $(
"#bphone"
).val(),
Email: $(
"#bemail"
).val(), ShowId: showID, HostId: 1, DealerId: 1, Note:$(
"#bemail"
).val(), Photo:
''
, Id: -1}));
i have read posts for hours and hours...tried almost everything i read and can't get the create to POST to my web service.
Thanks for any help.
Richard