INNER CODE UNIT · JavaScript
quickContact
intermine/intermine · bio/webapp/src/main/webapp/model/canvasXpress/js/app.js:15
function quickContact(id,url,success) {
$('contactButton').hide();
$('sendingForm').show();
data = $(id).serialize();
new Ajax.Request(url, {
method: 'post',
parameters: data,
evalScripts:true,
asynchronous:true,
onSuccess: function(result){
$(success).innerHTML = result.responseText;
$('contactButton').show();
$('sendingForm').hide();
},
onFailure: function(result){
alert(result.responseText);
$('contactButton').show();
$('sendingForm').hide();