Link to home
Start Free TrialLog in
Avatar of SANJAY HALDAR
SANJAY HALDARFlag for India

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(action,o,winprops);

      }

As the showModalDialog() is deprecated in chrome 37. Please help how to use same showModalDialog() feature in chrome and mozilla.
ASKER CERTIFIED SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Sanjay Haldar
 
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