Hello all,
I have a jQuery dialog that renders a search form using "form_remote_tag"
- _searchDialog.html.erb - <div class='confirmDialogMsg'> Please type IRB number or part of a number<br /> If search does not retrieve desired results, please refine search. </div> <!-- Search Bar --> <% form_remote_tag :update => "searchResults", :url => {:controller => 'irbs', :action => 'search'}, :position => "top", :complete => "clearForm()" do -%> <span class="search"> <%= text_field_tag :search, params[:search], :size => 30 %> <%= submit_tag 'Search', :class => 'searchButton' %> </span> <% end -%> <!-- end Search Bar --> IRB Number: <div id="searchResults"></div>
I can get the search results to display but my problem is if the user clicks on the submit button twice the search will continue to add the results to the "searchResults" div.
Then only answer is to either disable the submit button or somehow disable the search feature. I've tried using ":disable_with" to disable the submit button and it didn't work.
Thank you for any help on this.
JohnM