Created
June 3, 2012 07:05
-
-
Save csanz/2862350 to your computer and use it in GitHub Desktop.
JSONP
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
callMe({name: 'chris'}) |
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
<html> | |
<script src="hey.js"></script> | |
<script> | |
function callMe(json){ | |
obj = eval(json) | |
alert(obj.name) | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment