window.createPopup() not working in Firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivavenu
    New Member
    • Aug 2007
    • 4

    #1

    window.createPopup() not working in Firefox

    Hi All,

    I am working on ASP.NET 2.0. In my code i have written window.createPo pup() in Java Script but it is not working with firefox. Please provide me the alternative one to work with Firefox.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Changed thread title to better describe the problem.

    Heya, sivavenu. Welcome to TSDN!

    Try using window.open().

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      Hi ...

      welcome to TSDN ...

      standard compliant javascript doesn't know a function createPopup() ... but you may have created on for your own? ... in case you haven't you may use the standard window.open() method ... have a look here

      kind regards

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        hi pbmods ... nearly identical posts at the same time ;) ...

        Comment

        • sivavenu
          New Member
          • Aug 2007
          • 4

          #5
          Hi All,

          I need to create a popup window with in the same browser. So it is not possible to usewindow.open( ). My new popup window should be as like as produced by the Window.createPo pup(). Please help me in this regard.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by sivavenu
            Hi All,

            I need to create a popup window with in the same browser. So it is not possible to usewindow.open( ). My new popup window should be as like as produced by the Window.createPo pup(). Please help me in this regard.
            In that case, you need to create your own DHTML popup. You can either try it yourself or see this link.

            Comment

            • kfsone
              New Member
              • Aug 2007
              • 1

              #7
              This function is so unfortunately named. "createPopu p" does NOT create a pop-up window. It automates the process of creating and managing a DHTML floating div, ideal for things like your own auto-completions/tooltips/etc.

              Unfortunately, the P word catches peoples' eyes; once people see that, they get hung up on it.

              This function *should* be called createConvenien tFloatingDivTha tHasDocumentLik ePropertiesForE xtraConvenience ()

              because it's not quite a <div> that it creates, its more like an <iframe>. I've tried talking to the Firefox team about this function, but the Popup misnomer is every bit as big a red flag to them as mentioning IE.

              My suggestion is to use this code - it solves the problem quickly:

              Code:
              if ( window.createPopup() ) // Creates anything but a popup
              {
                 ...
              }
              else
              {
                 alert("Your browser likes to do things the hard way and I like perl - another win for IE. This page will not work for you");
              }
              'course, I have the luxury of a captive audience I can yell at when they try to make my life harder ;)

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                Originally posted by kfsone
                This function is so unfortunately named. "createPopu p" does NOT create a pop-up window. It automates the process of creating and managing a DHTML floating div, ideal for things like your own auto-completions/tooltips/etc.

                Unfortunately, the P word catches peoples' eyes; once people see that, they get hung up on it.

                This function *should* be called createConvenien tFloatingDivTha tHasDocumentLik ePropertiesForE xtraConvenience ()

                because it's not quite a <div> that it creates, its more like an <iframe>. I've tried talking to the Firefox team about this function, but the Popup misnomer is every bit as big a red flag to them as mentioning IE.
                Fine, but it's not a standard method and when it is so badly named, why should it be supported? You can create your own DHTML floating divs, though not as easy as one function call.
                Originally posted by kfsone
                My suggestion is to use this code - it solves the problem quickly:

                Code:
                if ( window.createPopup() ) // Creates anything but a popup
                {
                   ...
                }
                else
                {
                   alert("Your browser likes to do things the hard way and I like perl - another win for IE. This page will not work for you");
                }
                My suggestion is not to use that code. Where's that for cross-browser functionality? Just because a non-standard method doesn't work in every browser except one, the page only works in that one browser!

                PS. welcome to TSDN!

                Comment

                • Roman R
                  New Member
                  • Mar 2011
                  • 2

                  #9
                  Hi,

                  Yes, no browser other than IE have window.createPo pup().
                  This is why I have created a cross browser window.createPo pup() on this post: http://extremedev.blogspot.com/2011/...s-browser.html

                  Leave a comment, if it helps great, if not I will try to find a another solution for your problem.

                  Comment

                  Working...