Location: Resolved Issues

Discussion: Can't save cell editsReported This is a featured thread

Showing 4 posts

jmcmahon89
Can't save cell edits
Aug 5 2008, 1:37 PM EDT | Post edited: Aug 5 2008, 1:37 PM EDT
Just started playing with Injected yesterday, and the integration with our rails app has been fairly smooth. But unfortunately, I cannot save cell edits via the javascript client. When I try to save, I get a js popup stating "We are sorry, there was an error completing this action. Please reload the page and try again." The changes are not saved, and the "Add an Edit Note" popup remains. I will send an email with screenshot and html dump to Jeff. Do you find this valuable?    
Keyword tags: None
devin_wetpaint
devin_wetpaint
1. RE: Can't save cell edits
Aug 5 2008, 7:00 PM EDT | Post edited: Aug 5 2008, 7:00 PM EDT
Hello,

The error you are seeing is a validation error, which occurs if one or more required parameters are not provided or are invalid. This behavior is atypical at this stage, however, since this validation succeeded moments earlier when you entered Edit mode. I'll need some more information to further debug the issue. Assuming you are using togo.wetpaint.com for testing, try the following steps:

In Firefox with Firebug enabled:
1. Navigate to your test page and click the EasyEdit button.
2. Modify some content and click the Save button.
3. After the Edit Note dialog appears, but before clicking a button, open the Firebug console and enter the following: WPC.Lk.DEBUG = true;
4. Click either Save or Skip Edit Note.
5. Observe the Firebug console. Copy the console output and send it to me via a private message on this wiki (or just e-mail it to Jeff and he'll get it to me for investigation).

Also... how was the cell created? Was it created via an API call via CellService.createCell or on-the-fly via CellService.getCell*? The parameters you used for either of these calls may also be helpful.

Thanks!

- DC
1  out of 1 found this valuable. Do you?    

jmcmahon89
2. RE: Can't save cell edits
Aug 5 2008, 9:23 PM EDT | Post edited: Aug 5 2008, 9:23 PM EDT
Thanks for the debug tip Devin.

I recreated all the cells via createCell, but passed in a cell.url as well this time. That fixed the problem!

Tobias
Do you find this valuable?    
devin_wetpaint
devin_wetpaint
3. RE: Can't save cell edits
Aug 5 2008, 10:08 PM EDT | Post edited: Aug 5 2008, 10:08 PM EDT
Superb. Do you find this valuable?