From 7107960c1db047d16b8371a044cb2aaba8504679 Mon Sep 17 00:00:00 2001 From: tonio Date: Tue, 30 Nov 2010 18:03:57 +0100 Subject: [PATCH] see #102 Simple attempt to display the error page returned by the server directly inside SqueezeBox. Pedro, does it fit your need? --- static/js/form.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); };