Created
May 5, 2011 16:39
-
-
Save gigasquid/957387 to your computer and use it in GitHub Desktop.
Example File for Ajax Mocking with Jasmine
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 mymethod() | |
{ | |
var url = contextPath + "/bar.ajax"; | |
$.ajax({ | |
type: "POST", | |
url: url, | |
data: { type: "test"}, | |
success: function(json){ | |
$('#mydiv').html("Happy Face"); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment