China Construction Bank web is not fully functional in Chrome because of showModalDialog()

2014-09-05 01:48:44 -0400
To quote https://developer.mozilla.org/en-US/docs/Web/API/Window.showModalDialog,


> Introduced by Microsoft Internet Explorer 4. Support added to Firefox in Firefox 3 (deprectated in Fx 28), and to Safari in Safari 5.1.


As you can see from the message quoted above the showModalDialog is supported in IE and some versions of Firefox and Safari

And below is the code used by the China Construction Bank(中国建设银行, CCB), where browsers other than Safari will be using window.showModalDialog(), that includes Chrome which is not supporting showModalDialog


if(BROWSER.isSafari()){//Safari
if(winName=='queryPoints('+acc+')'||winName=='updatezh('+acc+')'){
vReturn=window.open(URL,winName,'top=160px;left=100px;height='+Hei+'px;width='+Wid+'px;status=no;menubar=no;location=no;');
}else{
vReturn=window.open(URL,winName,'height='+Hei+'px;width='+Wid+'px;status=no;menubar=no;location=no;');
}
vReturn.focus();
}else{//IE FF
//disableYNParent("btnQuery|btnDetail|btnPoints|btnRef","0|0|0|0");
vReturn = window.showModalDialog(URL,this,'dialogWidth:'+Wid+'px;dialogHeight:'+Hei+'px;status:no;menubar:no;location:no;');
}
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N