Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gigasquid
Created May 5, 2011 16:39
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 gigasquid/957387 to your computer and use it in GitHub Desktop.
Save gigasquid/957387 to your computer and use it in GitHub Desktop.
Example File for Ajax Mocking with Jasmine
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