Skip to content

Instantly share code, notes, and snippets.

@chrivers
Created March 2, 2011 17:25
Show Gist options
  • Save chrivers/851319 to your computer and use it in GitHub Desktop.
Save chrivers/851319 to your computer and use it in GitHub Desktop.
chrivers
rpc.event_click = lambda: jQuery.jsonRPC.request(js('test.sum'), js({
params: [1, 2, 3, 4],
success: lambda result: alert(sprintf(js("Result from server: %s"), result.result)),
error: lambda result: alert("fail")
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment