Permalink
Browse files

remove sprocket

  • Loading branch information...
1 parent 4574a35 commit 2009778b37227be911dddc844e04f1f6fef21fdd gammy committed Feb 27, 2012
Showing with 0 additions and 47 deletions.
  1. +0 −47 sprocket.js
View
@@ -1,47 +0,0 @@
-function handleBeforeSend(XMLHttpRequest, textStatus, errorThrown) {
- console.log("In handleBeforeSend");
-}
-
-function handleSuccess(XMLHttpRequest, textStatus, errorThrown) {
- console.log("In handleSuccess");
-}
-
-function handleError(XMLHttpRequest, textStatus, errorThrown) {
- console.log("In handleError");
-}
-
-function handleComplete(XMLHttpRequest, textStatus, errorThrown) {
- console.log("In handleComplete");
-}
-
-function handleClick() {
- console.log("In handleClick");
-
- // Set up settings for the request
- var settings = {
- url : 'demo.php',
- type : 'GET',
- cache : false,
- dataType : 'json',
- beforeSend: handleBeforeSend,
- success : handleSuccess,
- error : handleError,
- complete : handleComplete
- };
-
- $.ajax(settings);
-
-}
-
-function installHandlers() {
- console.log("In installHandlers");
-
- $('#button').bind('click', handleClick);
-}
-
-function sessionLoad() {
- console.log("In sessionLoad");
- installHandlers();
-}
-
-$(document).ready(sessioLoad);

0 comments on commit 2009778

Please sign in to comment.