SANJAY HALDAR
asked on
Alternative to javascript showModalDialog function
Hi experts,
Currently we are using below code to call an applet through javascript, so that when the applet will run the parent window will be disabled.
function newWindow(mypage)
{
var o = new Object();
o.opener = self;
var action=mypage;//some html which call an applet
winprops ="dialogHeight:275 px; dialogLeft:300 px; dialogTop:250 px; dialogWidth:400 px; ,scrollbars:no resizable:no status:yes"
win = window.showModalDialog(act ion,o,winp rops);
}
As the showModalDialog() is deprecated in chrome 37. Please help how to use same showModalDialog() feature in chrome and mozilla.
Currently we are using below code to call an applet through javascript, so that when the applet will run the parent window will be disabled.
function newWindow(mypage)
{
var o = new Object();
o.opener = self;
var action=mypage;//some html which call an applet
winprops ="dialogHeight:275 px; dialogLeft:300 px; dialogTop:250 px; dialogWidth:400 px; ,scrollbars:no resizable:no status:yes"
win = window.showModalDialog(act
}
As the showModalDialog() is deprecated in chrome 37. Please help how to use same showModalDialog() feature in chrome and mozilla.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I believe that jQuery UI has a Modal Dialog that is just you need.
Take a look at this example on their page:
jQuery UI
They provide several examples and there is a complete documentation to their API
Best Regards
APoPhySpt