-
9 Mar 2012 4:01 AM #1
how to prevent deleting event if success":"false"
how to prevent deleting event if success":"false"
hi i am using extjs ExtensibleCalendar. I am getting error or bug while deleting event.
i am using proxy type REST proxy for CRUD operation.When i use DELETE. i return success":"true" it is working properly.
if any error happen in server side i return success":false
like that {"success":false,"message":"error","data":null}. even i return success":"false" it delete the event.
ideally it should not delete if success":false.
kindly provide me details how to prevent deleting event if success":false. or any other way to do that.
Thanks
chandan
-
9 Mar 2012 7:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Try changing the status code of the response.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Mar 2012 8:04 AM #3
I recomment asking Brian in his extensible forums:
http://ext.ensible.com/forum/
since the calendar is not an official sencha component.
community discussion is definitely the wrong place to ask.
-
9 Mar 2012 8:17 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Not 100% sure it isn't an Ext JS question actually. Do it outside the calendar and the same issue may happen.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote