diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-08-07 13:52:28 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-08-07 13:52:28 +0000 |
| commit | 7321cbde6cc8178eaadb581d6ff2382c5eba260d (patch) | |
| tree | 6b7fc557a8d446ba9db91bcc930a12fac5d995b3 | |
| parent | e3cea61ec95f02e293f97317a5ed13bc7d7d979b (diff) | |
| download | search-7321cbde6cc8178eaadb581d6ff2382c5eba260d.tar.gz search-7321cbde6cc8178eaadb581d6ff2382c5eba260d.tar.bz2 search-7321cbde6cc8178eaadb581d6ff2382c5eba260d.zip | |
add framework for ajax search. not working yet, due to current module limitations
| -rw-r--r-- | modules/mod_ajax_search.tpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/mod_ajax_search.tpl b/modules/mod_ajax_search.tpl new file mode 100644 index 0000000..4375f6a --- /dev/null +++ b/modules/mod_ajax_search.tpl @@ -0,0 +1,16 @@ +{* this needs to go in <head>, but we don't have a way of doing that from a module yet. *} +<script type="text/javascript" src="{$smarty.const.UTIL_PKG_URL}javascript/libs/prototype.js"></script> +<script type="text/javascript" src="{$smarty.const.UTIL_PKG_URL}javascript/libs/live_search.js"></script> +<script type="text/javascript"> + var search = new LiveSearch($('search_box'), $('search_results')); +</script> +{* end of <head> section *} + +{if $gBitSystem->isPackageActive( 'search' )} + {bitmodule title="$moduleTitle" name="search_new"} + {form} + <input id="search_box" type="text" name="search" value="Search..." /> + <div id="search_results"></div> + {/form} + {/bitmodule} +{/if} |
