Created
January 17, 2014 09:22
-
-
Save GRGSIBERIA/8470532 to your computer and use it in GitHub Desktop.
Ajaxの非同期通信を使ってローカルサーバに接続する
This file contains 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
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