Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Created January 17, 2014 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GRGSIBERIA/8470532 to your computer and use it in GitHub Desktop.
Save GRGSIBERIA/8470532 to your computer and use it in GitHub Desktop.
Ajaxの非同期通信を使ってローカルサーバに接続する
function ShowTweetButton(args) {
var splited = args.split("!");
var vurl = splited[0];
var vfname = splited[1];
var vdata = splited[2];
$.ajax({
url: "http://localhost:4567/post",
type: "post",
data: {
fname: vfname, data: vdata
},
dataType: "text"
});
alert(vurl)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment