diff options
| author | franck cuny <franck@lumberjaph.net> | 2009-04-05 15:00:55 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2009-04-05 15:00:55 +0200 |
| commit | fb2f9b68235c171195cd8dd07c5ac6a7df9eb774 (patch) | |
| tree | 6c26b0e7bc3ded6fd4ff7fd246fb38b1a25cedab /root/static/search.js | |
| parent | remove search.js, wrong path (diff) | |
| download | intention-cloud-fb2f9b68235c171195cd8dd07c5ac6a7df9eb774.tar.gz | |
search.js
Diffstat (limited to 'root/static/search.js')
| -rw-r--r-- | root/static/search.js | 7 |
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(); } }); |
