# Flickr

**URL:** <https://www.ruby-forum.com/t/flickr/133341>\
**Category:** Rails\
**Created:** [March 30, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/flickr/133341 "2008-03-30T14:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megax](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@megax](https://www.ruby-forum.com/u/megax)\
**Post date:** [March 30, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/flickr/133341/1 "2008-03-30T14:31:47Z")

</div>

Using the Flirkr in 5 minutes rails screencast is was alble to include  
flikr into my website but I am at a loss for how to stop the user  
pressing tthe find button before they have put anything in the text box  
can anyone help?

code:

\<%= form\_remote\_tag :url =\> {:action =\> ‘search’}, :update =\> ‘photos’,  
:complete =\> visual\_effect(:blind\_down, ‘photos’),  
:before =\> %(Element.show(‘spinner’)),  
:loaded =\> %(Element.hide(‘spinner’)) %\>

\<%= image\_tag ‘spinner.gif’, :id =\> ‘spinner’, :style =\> ‘display:  
none’ %\>

 Enter search name: \<%= text\_field\_tag 'tags' %\> \<%= submit\_tag 'Find' %\>
