I've put the next code into developer tools console:
$.ajaxSetup({
error: function (XMLHttpRequest, textStatus, errorThrown) { alert("Error!\n"+textStatus); }
});
And got a "parsererror" message.
Server returns answer from
browse?escape=false with text/javascript mime-type and HTML-data. It caused jQuery to fail ajax-request with "parser error" reason, but source ajax call from
jquery/record_select.js:222 haven't an error callback to catch that situation.
In my app assets javascripts I've found next code (added a long, long time ago for now unknown reason):
// makes Rails to know that jQuery Ajax requests should be processed as .js format
$.ajaxSetup({
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
});
After I've removed it and cleared the cache (dammit cache!) form is become to appear (server now returns text/html).
Thanks for attention. Sorry for my English :-)