Permalink
Browse files

Added draft of real data implementation

  • Loading branch information...
1 parent 8955d3a commit 09f15e0703a8cfc230dafcb233f230a66eace00f Fixpoint committed Mar 23, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 data.js
View
@@ -0,0 +1,8 @@
+function requestData(success, failure) {
+ $.ajax({
+ url: 'data.js', dataType: 'json', success: success,
+ error: function(jqXHR, textStatus, errorThrown) {
+ return failure(textStatus + ": " + errorThrown)
+ }
+ })
+}

0 comments on commit 09f15e0

Please sign in to comment.