According to .load() the url parameter is not optional so either
$('#brick-mixer-form').submit(function(e) {
e.preventDefault();
$("#mix-bricks-submit").addClass("load");
$("#mix-bricks-submit").attr("value", "Blander sten..");
var form_data = $("#brick-mixer-form").serialize()
$.ajax({
type: "GET",
url: "build.php",
data: form_data,
dataType: 'text',
async: false, //I would avoid forcing synchronous
success: function(data) {
//$(".active").attr('src', 'build.php?'+form_data+'').load(function() {
$("#mix-bricks-submit").removeClass("load");
$("#mix-bricks-submit").attr("value", "Bland igen");
$("#bricks-selected").attr("value", form_data);
$("#pdf_saver").css("display", "block");
//});
}
});
});
or
$('#brick-mixer-form').submit(function(e) {
e.preventDefault();
$("#mix-bricks-submit").addClass("load");
$("#mix-bricks-submit").attr("value", "Blander sten..");
var form_data = $("#brick-mixer-form").serialize()
$.ajax({
type: "GET",
url: "build.php",
data: form_data,
dataType: 'text',
async: false,//I would avoid forcing synchronous
success: function(data) {
$(".active").load('build.php',form_data,function() {
$("#mix-bricks-submit").removeClass("load");
$("#mix-bricks-submit").attr("value", "Bland igen");
$("#bricks-selected").attr("value", form_data);
$("#pdf_saver").css("display", "block");
});
}
});
});
Although why would execute the ajax statement twice i am unsure of
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…