search for: search_ajax

Displaying 2 results from an estimated 2 matches for "search_ajax".

2009 Jul 29
6
Doubt in nil object with ajax
...t; <%= text_field ''recipe'', ''name'' %> <%= end_form_tag %> <div id="recipe"> </div> <%= observe_form :search_form, :frequency => 0.5, :update => ''recipe'', :url => { :action => ''search_ajax'' } %> </body> </html> below is the error i am getting Action Controller: Exception caught Showing *room/search.html.erb* where line *#9* raised: You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The erro...
2006 Apr 15
1
Begin with Autocompleter
...tch (e) {} 15 } 16 } 17 18 if (!http_request) { 19 alert(''InformaciĆ³n: No se ha podido crear la instancia del objeto XMLHTTP''); 20 return false; 21 } 22 http_request.onreadystatechange = function() { searchResult(); }; 23 http_request.open(''GET'',"search_ajax.php?q="+element, true); 24 http_request.send(null); 25 } 26 27 function searchResult() { 28 if (http_request.readyState == 4) { 29 if (http_request.status == 200) { 30 alert(http_request.responseText); 31 } else { 32 alert(''Han ocurrido problemas con la peticiĆ³n.''...