Jacob DeHart

Jacob DeHart

I am Jacob DeHart. I start businesses with my wife Mischa. Our first project is CulinaryCulture. Check me out on flickr, twitter.

Random Tumblelog

Wednesday December 26th 2007

Tumblr search update

Ok I redid a bunch of my tumblr search code.  Here’s the update list

  • 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
To include this in your site add this code to the customize part somewhere between the  tags.

<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!

  1. kidotch reblogged this from jacobd
  2. syoichi reblogged this from jacobd and added:
    これを導入するとTumblrに負荷をかけるらしいので注意 引用:”このスクリプトはページを開くたびに全POSTを取得しに行くためTumblrに高負荷をかけていることを教えていただきました。現在は外しています。”...
  3. bandit reblogged this from jacobd and added:
    here: http://blog.bandit.co.nz/post/80415548/tumblr-ajax-inline-search
  4. chancegarcia reblogged this from jacobd and added:
    in came up with an undefined Tumblr error
  5. dongthao reblogged this from buicongtu and added:
    Làm sao bác mở comment trên này được thế? Của mình không có comment
  6. tapbut reblogged this from buicongtu and added:
    Hay, thử luôn :)
  7. buicongtu reblogged this from jacobd and added:
    Đã ứng dụng thử, cực kỳ cool, index được cả tiếng Việt.
  8. davehauenstein reblogged this from jacobd and added:
    is pretty awesome. This dude wrote some javascript so...box. I plan on setting this up...
  9. gedfetz reblogged this from jacobd
  10. willwm reblogged this from jacobd
  11. jbreazeale reblogged this from jacobd
  12. florencio reblogged this from jacobd
  13. anchi reblogged this from jacobd
  14. teleute reblogged this from jacobd
  15. do-nothing reblogged this from jacobd
  16. plasticdreams reblogged this from browneyes
  17. ontheroad reblogged this from browneyes and added:
    Ok I redid a bunch of my tumblr search code. Here’s the update list Overhauled entire script. much cleaner Uses “AJAX”...
  18. browneyes reblogged this from noisebox
  19. noisebox reblogged this from jacobd
  20. tyzm reblogged this from nyama
  21. nyama reblogged this from freedomcat
  22. kuwataro reblogged this from freedomcat
  23. anta reblogged this from sn
  24. sn reblogged this from jacobd and added:
    Tumblr.searchBox()
  25. kuriz reblogged this from ontheroad
  26. browneyes reblogged this from nakano
  27. skashu reblogged this from freedomcat
  28. thinkcreative reblogged this from nakano and added:
    Tumblr.searchBox()
  29. nakano reblogged this from ontheroad
  30. ontheroad reblogged this from freedomcat
  31. dara-j reblogged this from browneyes
  32. browneyes reblogged this from freedomcat
  33. cocacola reblogged this from jacobd and added:
    Tumblr.searchBox()
  34. tanigami reblogged this from jacobd and added:
    Tumblr.searchBox()
  35. freedomcat reblogged this from jacobd
  36. lomo reblogged this from jacobd
  37. edvakf reblogged this from jacobd
  38. timtom reblogged this from jacobd and added:
    Tumblr.searchBox()
  39. jacobd posted this