summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-04-05 15:00:55 +0200
committerfranck cuny <franck@lumberjaph.net>2009-04-05 15:00:55 +0200
commitfb2f9b68235c171195cd8dd07c5ac6a7df9eb774 (patch)
tree6c26b0e7bc3ded6fd4ff7fd246fb38b1a25cedab
parentremove search.js, wrong path (diff)
downloadintention-cloud-fb2f9b68235c171195cd8dd07c5ac6a7df9eb774.tar.gz
search.js
-rw-r--r--root/static/search.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/root/static/search.js b/root/static/search.js
index f7bb58c..8d8ff9f 100644
--- a/root/static/search.js
+++ b/root/static/search.js
@@ -1,14 +1,17 @@
 $(function() {
     $("#submit").click(function() {
         $('#spinner').show();
+        $('#view').hide();
         var q = $("input#q").val();
         var dataString = 'q='+ q;
         $.ajax({
             type: "POST",
             url: "search",
             data: dataString,
-            success: function() {
-                $('#view').html("<div id='message'>blah!</div>");
+            //dataType: "json",
+            success: function(response) {
+                alert(response);
+                $('#view').show().html(response);
                 $('#spinner').hide();
             }
         });