« おいおいおい、高橋メソッドの本が出てるよ…!! | トップページ | 英語で説明文を書いてみた »

2005.12.06

Blog Search Engine For Typepad Made From JavaScript

"javascript_ajax_json_search.js" made from JavaScript can search all entries on your Brog at accurately, adequately, and high speed.

The account of Typepad Pro is necessary though this script can be used very easily by only two steps.

Usage :
1 : Make a new template in your templateset.
ex)
name : search_data
file name : search_data.txt
template :
(Please change the part of the deficit to a figure that is bigger than the
number of total entries of your Brog.)

------------------------
{data: [
<MTEntries lastn="3000">
{title:"<$MTEntryTitle remove_html="1" encode_js="1"$>",link:"<$MTEntryLink$>",body:"<$MTEntryBody remove_html="1" encode_js="1"$><$MTEntryMore remove_html="1" encode_js="1"$>"},
</MTEntries>
{"title": "", "link": "", "body": ""}
]
}
------------------------


2 : Set the search box in your sidebar.
Please set up the following HTML tag in the wherever you like of the sidebar.
It is necessary to rewrite the deficit by two places. (It is the file path, making the 1st step).

------------------------
<script type="text/javascript" src="http://java.cocolog-nifty.com/blog/files/javascript/prototype.js"></script>
<script type="text/javascript" src="http://java.cocolog-nifty.com/blog/files/javascript/blog_ajax_json_search.js"></script>
<form action="javascript:blogAjaxJsonSearch( '/blog/search_data.txt', document.getElementById('search_box').value );"><input type="search" id="search_box" value=""><input type="button" id="search_button" onclick="javascript:blogAjaxJsonSearch( '/blog/search_data.txt', document.getElementById('search_box').value );" value="search"></form>

------------------------

Search result output in the between <div class="contents"></div> tags.
so, if you miss the tags, this search script can't output the search result.

License :
This script is freeware.
Off course, you can use typepad or somewhere.


↓1日1ポチッとをお願いします!励みになります!
ポチっとよろしく!

|

« おいおいおい、高橋メソッドの本が出てるよ…!! | トップページ | 英語で説明文を書いてみた »

JavaScript」カテゴリの記事

コメント

コメントを書く



(ウェブ上には掲載しません)




トラックバック

この記事のトラックバックURL:
http://app.cocolog-nifty.com/t/trackback/22269/7485206

この記事へのトラックバック一覧です: Blog Search Engine For Typepad Made From JavaScript:

« おいおいおい、高橋メソッドの本が出てるよ…!! | トップページ | 英語で説明文を書いてみた »