popup - SyntaxError: missing ; before statement in kendoui -
how come when i'm clicking on update button popup kendo grid , error ocurrs?
the error in firefox browser in form :
syntaxerror: missing ; before d.0=valueand in chrome browser :
uncaught syntaxerror: unexpected number
i've uploaded video regarding error elaboration n stuff
code
transport: { read: { url: 'https://dl.dropboxusercontent.com/sh/u9oxg5f6uweqh40/cbr3pnvg04/documentj', datatype: 'json', type: 'get', cache: false }, update: function(e) { return true; } } save: function (e) { var = this; $.ajax({ url: '/echo/json', type: e.model.id == null ? 'post' : 'put', contenttype: 'application/json', datatype: 'json', data: json.stringify(e.model), success: function (data) { // alertify.log.success(data); console.log('ok dadasaved'); that.refresh(); }, error: function (data) { // alertify.log.error(data); console.log('no datasaved'); that.cancelrow(); } }); }
you should provide more code detect what's wrong code, read this may you:
such error occurs when transport definitions inconsistent. in other words, if use custom transport method, transport types should defined functions.
having standard read transport , custom update not supported. please configure transports functions , let me know if error still occurs.
Comments
Post a Comment