Forum Discussion
DiegoOrellana
6 years agoQrew Trainee
in the technique "Scooby do and save"
(function(){
var querystring=document.location.search;
if (/nwr/i.test(querystring)) {
$("<iframe>", {id: "QBU_editform", name: "QBU_editform"})
.css({display: "none"})
.appendTo("body")
.on("load", function() {
QBbusyHide();
var rid = this.contentWindow.kRid;
var markup = "";
markup += "<h2>You just created a new record with [Record ID#] = " + rid + " !<h2>";
markup += "<center><img src='http://vignette3.wikia.nocookie.net/hanna-barbera/images/2/24/Scoobydoo.jpg' height='200'></center>";
$("<div>").html(markup).dialog({
title: "Save and Scooby Doo!",
modal: true,
close: function(event, ui) {
document.location.href = gReqDBID + "?a=er&rid=" + rid;
}
});
});
$("form[name=editform]").prop({target: "QBU_editform"});
}
})();
(function(){
var querystring=document.location.search;
if (/nwr/i.test(querystring)) {
$("<iframe>", {id: "QBU_editform", name: "QBU_editform"})
.css({display: "none"})
.appendTo("body")
.on("load", function() {
QBbusyHide();
var rid = this.contentWindow.kRid;
var markup = "";
markup += "<h2>You just created a new record with [Record ID#] = " + rid + " !<h2>";
markup += "<center><img src='http://vignette3.wikia.nocookie.net/hanna-barbera/images/2/24/Scoobydoo.jpg' height='200'></center>";
$("<div>").html(markup).dialog({
title: "Save and Scooby Doo!",
modal: true,
close: function(event, ui) {
document.location.href = gReqDBID + "?a=er&rid=" + rid;
}
});
});
$("form[name=editform]").prop({target: "QBU_editform"});
}
})();