// JavaScript Document
var p = $("#popuploader");
var staticurl = $('#msg_staticurl').attr('title');
var defaulterror = $('#msg_defaulterror').attr('title');
var globalprice = function () {
p.dialog({
autoOpen: false,
bgiframe: true,
title: "test",
width: 420,
height: 300
});
p.dialog("open");
var d = $("#formitems");
var c = d.serialize();
p.html('<br><br><center><img src="' + staticurl + 'img/chef.gif" border=0 /></center>');
$.post("myactionpage.cfm", c, function (g, ts) {
if (ts == 'success') {
if (g) {
if ($.trim(g) == 'true') {
} else {
p.html('<br /><center><img src="' + staticurl + 'img/errorsmall.gif" /><br /><h4>' + defaulterror + '</h4></center>');
p.dialog("option", "buttons", {
End: function () {
p.empty();
$(this).dialog("close");
$(this).dialog("empty");
}
})
}
} else {
p.html('<br /><center><img src="' + staticurl + 'img/errorsmall.gif" /><br /><h4>' + defaulterror + '</h4></center>');
p.dialog("option", "buttons", {
End: function () {
p.empty();
$(this).dialog("close");
$(this).dialog("empty");
}
})
}
} else {
p.html('<br /><center><img src="' + staticurl + 'img/errorsmall.gif" /><br /><h4>' + defaulterror + '</h4></center>');
p.dialog("option", "buttons", {
End: function () {
p.empty();
$(this).dialog("close");
$(this).dialog("empty");
}
})
}
})
};
// JavaScript Document
var p = $("#popuploader");
var staticurl = $('#msg_staticurl').attr('title');
var defaulterror = $('#msg_defaulterror').attr('title');
var htmlVar = "<br /><center><img src=" + staticurl + "img/errorsmall.gif /><br /><h4>" + defaulterror + "</h4></center>";
var dialgVar = tempfunction () {p.dialog("option", "buttons", {
End: function () {
p.empty();
$(this).dialog("close");
$(this).dialog("empty");
}
});};
var globalprice = function () {
p.dialog({
autoOpen: false,
bgiframe: true,
title: "test",
width: 420,
height: 300
});
p.dialog("open");
var d = $("#formitems");
var c = d.serialize();
p.html('<br><br><center><img src="' + staticurl + 'img/chef.gif" border=0 /></center>');
$.post("myactionpage.cfm", c, function (g, ts) {
if (ts == 'success') {
if (g) {
if ($.trim(g) == 'true') {
} else {
p.html(htmlVar);
p.dialog(dialogVar)
}
} else {
p.html(htmlVar);
p.dialog(dialogVar)
}
} else {
p.html(htmlVar);
p.dialog(dialogVar)
}
})
};
// JavaScript Document
var p = $("#popuploader");
var staticurl = $('#msg_staticurl').attr('title');
var defaulterror = $('#msg_defaulterror').attr('title');
var htmlVar = "<br /><center><img src=" + staticurl + "img/errorsmall.gif /><br /><h4>" + defaulterror + "</h4></center>";
var dialgVar = tempfunction () {p.dialog("option", "buttons", {
End: function () {
p.empty();
$(this).dialog("close");
$(this).dialog("empty");
}
});};
var globalprice = function () {
p.dialog({
autoOpen: false,
bgiframe: true,
title: "test",
width: 420,
height: 300
});
p.dialog("open");
var d = $("#formitems");
var c = d.serialize();
p.html('<br><br><center><img src="' + staticurl + 'img/chef.gif" border=0 /></center>');
$.post("myactionpage.cfm", c, function (g, ts) {
if (ts == 'success') {
if (g) {
if ($.trim(g) == 'true') {
} else {
p.html(htmlVar);
dialgVar();
}
} else {
p.html(htmlVar);
dialgVar();
}
} else {
p.html(htmlVar);
dialgVar();
}
})
};
Only part I'm unsure about is the dialogVar that I created. Might have the double- and single-quotes off.
Open in new window