Created
February 17, 2015 19:54
-
-
Save mcr/58aafeb019f18a3cd6b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ "url": agenda_url, | |
"type": "POST", | |
"data": { "public" : new_value }, | |
"dataType": "json", | |
"success": function(result) { | |
/* result is a json object */ | |
value = result["public"]; | |
log("new value "+value); | |
$(span_to_replace).html(value); | |
}}); |
Author
mcr
commented
Feb 17, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment