diff --git a/static/js/form.js b/static/js/form.js index b40b57f01..211f31cec 100644 --- a/static/js/form.js +++ b/static/js/form.js @@ -14,7 +14,11 @@ window.addEvent("domready", function() { parent.location.href = decode.url; parent.SqueezeBox.close(); } - } + }, + onFailure: function(xhr) { + parent.document.getElement('iframe').setStyles({width: 800, height: 600}); + $(dest).set("html", xhr.responseText); + } }); obj.send(); };