Replacement for window.showModalDialog in Mozilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarath chandran
    New Member
    • Nov 2007
    • 6

    #1

    Replacement for window.showModalDialog in Mozilla

    Hi all,
    can you tell me the replacement for window.showModa lDialog in Mozilla.
    the code given below works well in IE but it doesn't work in Mozilla.
    Is there any replacement for this method in Mozilla.?
    If so then please help me by giving an example

    [CODE=javascript]
    window.showModa lDialog("../login/html/AdminLogin_User .html",loginTyp e,style
    [/CODE]
    Last edited by gits; Dec 21 '07, 03:57 PM. Reason: added code tags
  • frozedog
    New Member
    • Dec 2007
    • 3

    #2
    Originally posted by sarath chandran
    Hi all,
    can you tell me the replacement for window.showModa lDialog in Mozilla.
    the code given below works well in IE but it doesn't work in Mozilla.
    Is there any replacement for this method in Mozilla.?
    If so then please help me by giving an example


    <CODE>
    window.showModa lDialog("../login/html/AdminLogin_User .html",loginTyp e,style
    </CODE>

    Have you tried showModelessDia log

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      the standard method is to use window.open(); which always work ... to produce a cross-browser modal dialog you could create a custom dhtml-dialog out of a combination of 'divs'

      kind regards

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by frozedog
        Have you tried showModelessDia log
        Firefox and others do not support showModalDialog and showModelessDia log. They're non-standard.

        Comment

        • Roman R
          New Member
          • Mar 2011
          • 2

          #5
          Hi,

          I have created a jQuery function: showModalDialog which works on all major browsers: IE, Chrome, Safari and Firefox.

          You can see the entire article on my blog: http://extremedev.blogspot.com/2011/...owser-new.html

          Comment

          Working...