javascript showmodaldialog is not showing scrollbars -


i sorry if duplicate. please show me if duplicate. opening modal popup using javascript below. not showing scrollbars in ie 11. have grid/table inside long width popup window. expecting horizontal , vertical scrollbars not showing.

function showmodalwindowpopup(popupurl, windowproperties, w, h) { try {     var left = (screen.width / 2) - (w / 2);     var top = (screen.height / 2) - (h / 2);     var properties = windowproperties + "width=" + w + ", height=" + h + ", top=" + top + ", left=" + left + ", scrollbars=yes, resizable=yes";     var childwindow = window.showmodaldialog(popupurl, "", windowproperties); } catch (err) {     alert("error occured while opening showmodalwindowpopup popup: " + err); } } 

[update] able fix it. simple typo error took 1 complete day , caused me lot of frustration

function showcdeventswindow(popupurl, windowproperties, w, h) { try{     var left = (screen.width / 2) - (w / 2);     var top = (screen.height / 2) - (h / 2);      var properties = windowproperties + "dialogwidth:" + w + "px;dialogheight:" + h + "px;dialogtop:" + top + "px;dialogleft:" + left + "px;scroll:yes; resizable:yes; center:yes";     var childwindow = window.showmodaldialog(popupurl, "", properties); } catch(err) {     alert("error occured while opening cd events popup :" + err) } 

in below line instead of passing properties, passing windowproperties , reason why properties set dialog not taking effect.

var childwindow = window.showmodaldialog(popupurl, "", properties);

see documentation showmodaldialog here https://developer.mozilla.org/en-us/docs/web/api/window/showmodaldialog rules should seperated semi-colons not commas, , should use colons instead of equals. variable scroll not scrollbars. this:

var properties = windowproperties + "dialogwidth:" + w + ";dialogheight:" + h + ";dialogtop:" + top + ";dialogleft:" + left + ";scroll:on; resizable:on"; 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -