Ajax Search for your Tumblr
Ok, this is pretty awesome. This dude wrote some javascript so that your Tumblr account is searchable via an AJAX live search box. I plan on setting this up tonight.
Ok I redid a bunch of my tumblr search code. Here’s the update list
To include this in your site add this code to the customize part somewhere between the tags.
- Overhauled entire script. much cleaner
- Uses “AJAX” to pull in data.
- Loads all data, not just last 20 posts. (maybe should limit this in the future!)
- Can have multiple search boxes
<script src=”http://www.thisismydevsite.com” type=”text/javascript”></script>
Then put this code where you want a search box to appear.
<script type=”text/javascript”>Tumblr.searchBox()</script>
If you can, copy that JS file to your own server and link to that.
If you view source on my page you can see the custom CSS I added to format the search results, otherwise it will look pretty raw.
Enjoy!
