Welcome, Guest
  • Author Topic: Popup displays a blank window  (Read 11784 times)

    fpoblete

    • Server what's that
    • *
    • Posts: 6
      • View Profile
      • Email
    Popup displays a blank window
    « on: 06/06/08, 09:13 »
      I'm using several methods to achieve a popup html window from a flash.

      Every single one of them gives me the same error on iexplorer 7:

      After I click on the button with the popup code, a new window appears, but with no content in it. I cannot use it either, because  it seems like it is frozen (I can't have right button mouse actions, nor change the url of the address bar).

      What it's even more crazy is that the url of that window (showed in the address bar) is the same of any web site I previously visited. For instance, if I visited google, the popup windows shows
    http://www.google.com in there.

    Here is what I've tried:

    on (release) {
    • var jscommand:String = "window.open('"somepage.php?parameter="+variable+"','win','height=600,width=800,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);");
    • getURL("javascript:void(window.open('somepage.php?parameter="+variable+"','win','menubar=no,resizable=no,toolbar=no,directories=no,location=no,scrollbars=yes,width=800,height=600,left = 200,top = 20'))");

    • getURL ("javascript:window.open('somepage.php?parameter="+variable+"','win'); void(0);");
    • getURL ("javascript:NewWindow=window.open('somepage.php?parameter="+variable+"','win','width=400,height=300,left=50,top=50,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");

    }
    [/i]
    The last method, even gives me a "NewWindow is not an object" alert (lower left's yellow icon in iexplorer).


    Yes, the popup file is in the same folder.
    Yes, it works fine in firefox with any method.
    Yes, I delete my cookies and temporary web files before testing.
    Yes, I'm testing on the remote server.
    Yes, I've tried publishing as flash 6, 7, 8 and 9.
    Yes, I've tried using the full url ("'http://www.someserver.com/somepage.php?parameter="+variable')

    Got any clues? This is driving me crazy!

    BTW, I'm using ActionScript 2.0 (It would too much effort to change everything to AS 3.0).[/list]

    UPDATE: I've tried it on a different PC using iexplorer 6 and works fine. So, I just have to check if the problem applies to iexplorer 7 in general or just my pc.
    « Last Edit: 06/06/08, 14:48 by fpoblete »

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Popup displays a blank window
    « Reply #1 on: 06/13/08, 09:23 »
    what happens, if you call your somepage.php directly?
    happy flashing
    8)
    Ronald

    fpoblete

    • Server what's that
    • *
    • Posts: 6
      • View Profile
      • Email
    Re: Popup displays a blank window
    « Reply #2 on: 06/15/08, 23:25 »
    What do you mean by directly?

    Anyway, I've been using iexplore more often now (I usually browse with firefox) and this problem has occured while visiting other websites that popup windows, using javascript (but no flash) so this seems like a problem with my iexplorer 7. Probably some security issue.

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Popup displays a blank window
    « Reply #3 on: 06/16/08, 03:35 »
    directly means - open the page, which you would like to open in the new window, without using the popup script - just enter the url into the address line.
    happy flashing
    8)
    Ronald

    fpoblete

    • Server what's that
    • *
    • Posts: 6
      • View Profile
      • Email
    Re: Popup displays a blank window
    « Reply #4 on: 06/20/08, 09:24 »
    Yes. I've already checked that. It doesn't matter what page I try (not even http://www.google.com works).

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Popup displays a blank window
    « Reply #5 on: 06/20/08, 10:15 »
    window.open('"somepage.php?parameter="+variable+"','win','height=600,width=800,toolbar=no,scrollbars=yes');"
    should be working, unless popupblocker is on.
    happy flashing
    8)
    Ronald

    fpoblete

    • Server what's that
    • *
    • Posts: 6
      • View Profile
      • Email
    Re: Popup displays a blank window
    « Reply #6 on: 06/23/08, 08:52 »
    As I mentioned before, the popup window DO appear, so it's not being blocked.

    The problem is that the popup window is empty, and it seems like it's frozen (for instance, mouse's right button actions don't work). The weirdest thing is that the window's title it's not the one I specified (sucha as "win"), but the title from the last website I visited.