Two (count 'em) TWO live search boxes

by Thomas Aylott Mon, 28 Nov 2005 05:17:00 GMT

I’m still pretty green when it comes to Ruby on Rails.

I decided that I wanted to have a live search box on the bottom of my theme for the contest. I also want one for the top of my theme.

It’s really pretty easy to mess around in this code. It all just makes sense (assuming you have a good general idea of what’s going on).

Anyway, I just wanted to blog a snippet you can use to have a second live search box in your theme.


<%= start_form_tag({:controller => 'articles',  :action => 'search'}, {:method => 'get', :id => 'sform1'}) %>
 <h3><label for="q">Search</label><input type="text" id="q_bottom" name="q" value="" size="15" /><%= image_tag "theme/spinner.gif", :id => 'search_spinner1', :style => 'display:none;' %></h3>

<%= end_form_tag %>
<%= observe_field "q_bottom", :frequency => 1, 
    :url => { :controller => "live", :action => "search" }, 
    :loading => "Element.show('search_spinner1')",
    :complete => "Element.hide('search_spinner1')",
    :update => "search-results1",
    :with => "'q=' + escape($F('q_bottom'))" -%>
<div id="search-results1"></div>

enjoy :D

Posted in Typo, Ruby on Rails, Theme | no comments | no trackbacks

subtleTheme — Typo Theme Designed By Thomas Aylott of design42

by Thomas Aylott Sat, 26 Nov 2005 22:50:00 GMT

Jump, Kitty

This is just a test post to use in the screenshots. I had made the First Post post a few days ago. But, it’s just way too big for a cute screenshot.

I would just like to thank you all for taking an interest in my theme, or my blog, or kittens. As Wil Shipley says in the subtitle of his blog

... Kittens are fuzzy.

To that theme, i’d like to add this:

Read more…

Posted in Theme, Typo | 1 comment | no trackbacks

I hate IE!!!!!

by Thomas Aylott Sat, 26 Nov 2005 06:36:37 GMT

Hello.

I would just like to let everyone know that IE is the devil. Internet Explorer for windows wants to see us all toil endlessly to produce crap. It hates us all and wants to see us rot in the depths!

Well, the feeling is mutual. It’s like a drunken tatoo.

  • You’re stuck with it forever.
  • It makes a daily mockery of you.
  • You can spend time and money to hide it, or make it look good with your outfit, but it just makes you look stupid and ugly no matter what you try to do.

I hate you IE. I fart in you’re general direction. You’re father was a hamster and your mother smelt of elderberries.

Posted in Theme | 7 comments | no trackbacks

Older posts: 1 2 3