requirements, js
This commit is contained in:
parent
3abb611fdb
commit
f9a430dfb6
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
$(function() {
|
||||||
|
$('#searchForm').submit(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
var q = $('#search').val();
|
||||||
|
$.getJSON("/search/", {'q': q}, function(data) {
|
||||||
|
console.log(data);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user