Hello All;
I'm trying to use the showModalDialog() feature inside my code (below) but am not being successful. Could someone point me out the the error that I'm making????
Thanks.
function firstNonCounterProcessingWindow(){
if(win&& win.open && !win.closed) win.close();
win = window.showModalDialog("", "win", "dialogWidth:450;dialogHeight:110;dialogLeft:275;dialogTop:275");
with(win.document){
write("<HTML><HEAD><TITLE>Processing Request....</TITLE></HEAD><BODY bgcolor='#fff8dc' onblur='this.focus();'> " +
"<CENTER><h3>Please wait while your request is being processed.</h3> " +
"</CENTER></BODY></HTML>");
close();//close the output stream after finished writing content to the window
}
}
function firstCounterProcessingWindow(counter, message){
win = window.showModalDialog("", "win", "dialogWidth:450;dialogHeight:110;dialogLeft:275;dialogTop:275");
with(win.document) {
open("text/html", "Replace");//replace the text of the existing processing window with new contents
write("<HTML><HEAD><TITLE>Processing Request.....</TITLE></HEAD><BODY bgcolor='#fff8dc' onblur='this.focus();'><CENTER> " +
"<h3>Please wait while your request is being processed.</h3> " +
"<table><tr><td style='font-family:arial; size:8pt'><span id='textCount' ></span>Request status:" + counter + "% completed.</td></tr></table> " +
"<table><tr><td style='font-family:arial; size:8pt'><span id='textMessage'></span>" + message + "</td></tr></table> " +
"</center></body></html>");
close();//close the output stream after finished writing content to the window
}
}
"Behind every great fortune there lies a great crime", Honore De Balzac
I'm trying to use the showModalDialog() feature inside my code (below) but am not being successful. Could someone point me out the the error that I'm making????
Thanks.
function firstNonCounterProcessingWindow(){
if(win&& win.open && !win.closed) win.close();
win = window.showModalDialog("", "win", "dialogWidth:450;dialogHeight:110;dialogLeft:275;dialogTop:275");
with(win.document){
write("<HTML><HEAD><TITLE>Processing Request....</TITLE></HEAD><BODY bgcolor='#fff8dc' onblur='this.focus();'> " +
"<CENTER><h3>Please wait while your request is being processed.</h3> " +
"</CENTER></BODY></HTML>");
close();//close the output stream after finished writing content to the window
}
}
function firstCounterProcessingWindow(counter, message){
win = window.showModalDialog("", "win", "dialogWidth:450;dialogHeight:110;dialogLeft:275;dialogTop:275");
with(win.document) {
open("text/html", "Replace");//replace the text of the existing processing window with new contents
write("<HTML><HEAD><TITLE>Processing Request.....</TITLE></HEAD><BODY bgcolor='#fff8dc' onblur='this.focus();'><CENTER> " +
"<h3>Please wait while your request is being processed.</h3> " +
"<table><tr><td style='font-family:arial; size:8pt'><span id='textCount' ></span>Request status:" + counter + "% completed.</td></tr></table> " +
"<table><tr><td style='font-family:arial; size:8pt'><span id='textMessage'></span>" + message + "</td></tr></table> " +
"</center></body></html>");
close();//close the output stream after finished writing content to the window
}
}
"Behind every great fortune there lies a great crime", Honore De Balzac