requirements, js

This commit is contained in:
Sanj 2011-10-04 01:18:53 +05:30
parent 3abb611fdb
commit f9a430dfb6
3 changed files with 11 additions and 1 deletions

View File

@ -2,3 +2,4 @@
-e bzr+http://code.0xdb.org/python-ox/#egg=python-ox -e bzr+http://code.0xdb.org/python-ox/#egg=python-ox
django_extensions django_extensions
South South
pYsearch

View File

@ -0,0 +1,9 @@
$(function() {
$('#searchForm').submit(function(e) {
e.preventDefault();
var q = $('#search').val();
$.getJSON("/search/", {'q': q}, function(data) {
console.log(data);
});
});
});

View File

@ -22,7 +22,7 @@
<div class="header"> <div class="header">
<a href="#"> <a href="#">
<img src="/static/images/truboxx-logo.png" alt="trubox-logo" width="280" height="78" id="logo"></a> <img src="/static/images/truboxx-logo.png" alt="trubox-logo" width="280" height="78" id="logo"></a>
<form action="" method="get"> <form action="" id="searchForm" method="get">
<input type="text" placeholder="search for a gadget" name="field" id="search"/> <input type="text" placeholder="search for a gadget" name="field" id="search"/>
</form> </form>