hi priya,

thnaks again
i am able to get the dropdown box for search text box.And able to get
the searched streams list.

i have tried like this.
-----------------------------------in
index.html.erb-----------------------------------------------
search :<%= select_tag 'category',options_for_select([['mpeg2 25fps'],
                      ['mpeg2 30fps'],
                      ['mpeg2'],
                      ['1920x1080'],
                      ['h264'],
                      ['aac']], to_s),  :onchange =>
"content.category(this,notnull ) ;"  %>

<img id="spinner" src="/images/indicator.gif" style="display: none;" />

<div id="results"></div>

<%= observe_field 'category',
  :frequency => 0.5,
  :update => 'results',
  :url => { :controller => 'streams', :action=> 'get_results' },
  :with => "'search_text=' + escape(value)",
  :loading => "document.getElementById('spinner').style.display='inline'",
  :loaded => "document.getElementById('spinner').style.display='none'" %>
----------------------------------------------------------------------------
But this procedure is very bad beacuase we have to give the number
combinations for dropdown box if i have number of searchable options.

So now what i want to do is  like this:
e.g
i have two dropdown boxes one for codecformat one for  resolution
using drop down box i can select codecforformat as mpeg2 and
resolution as 1920x1080 now by using the search button i want to
search the streams for the corresponding selection.

i hope you understand my problem.

Can we do it?
Can you give me any suggestion or idea to do this?

thanks for spending time  for reading my querys and replying

regards
Srikanth


On Fri, Dec 12, 2008 at 11:32 AM, Priya Buvan
<[email protected]> wrote:
>
> Hi,
>     In the place of textbox in template, you can display the text using
> collection_select.
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to