I just uploaded a jQuery plugin to turn a regular (non-souped-up) table’s rows into inline editable. The url is http://code.google.com/p/jquery-inline-editor/
There are some instructions there too. Feel free to modify.
Pretty simple but might save you some time if you’re going in this direction.
jEditable is a cool jQuery plugin for inline editing. I was toying around with it today and found an interesting ‘feature’: it expects a string response from the server. Now that’s a problem because I was returning a JSON object so my string had quotes around it (Test became “Test”). Ok, so I have to return a regular string. I guess I just didn’t expect that because I’m used to my jQuery plugins expecting json (or at least accepting it).
So, what I did was create a StringResult. Much like the JsonResult class, the StringResult outputs the data you give it but it just outputs text. Simple but effective, here’s the code:
public class StringResult : ActionResult
private string _output;
public StringResult(string output)
_output = output;
public override void ExecuteResult(ControllerContext context)
HttpResponseBase response = context.HttpContext.Response;
response.ContentType = "text/html";