FF params

View:

<%= text_field_tag :search_id, "", :id=>"search_id" %>

<%= link_to_remote “Search”, :url=>{:controller=>“search”, :action =>
“query”}, :with => "‘search_id=’ + $(‘search_id’).serialize() -%>

Controller:
render :update do |page|
page.redirect_to :action => “show”,
:q1=>params[:search_id],
:q2=>params[:search_title],
:q3=>params[:search_author],
:q4=>params[:search_tags],
:q5=>params[:search_date_from],
:q6=>params[:search_date_to]
end

(IE7) works fine, but in (FF3.0)…the params are
nil…params[:search_id] for instance

Any help is appreciated, thanks!

On 13 Aug 2008, at 00:10, Justin To wrote:

View:

<%= text_field_tag :search_id, "", :id=>"search_id" %>

<%= link_to_remote “Search”, :url=>{:controller=>“search”, :action =>
“query”}, :with => "‘search_id=’ + $(‘search_id’).serialize() -%>

That’s because that will generate a query string that looks like
search_id=search_id=something
because serialize returns key=value strings.
just :with => "$(‘search_id’).serialize()
will do

Fred

Thanks Fred, excellent help as usual!!