[CLOSED] window.open Popup

  1. #1

    [CLOSED] window.open Popup

    When I press an ImageButton I show the contents of an html file via window.open. Everything works fine in Chrome, IE and Firefox.

    I also look at the ClientQueryString to determine if I need to show an html file and this is where I run into a issue. I tried the following, but each call is causing the Popup blocker to block the window.open.

     if (ClientQueryString.Length > 0)
            {
               // X.Js.Call("showInfo");
               // MessageBus.Default.Publish("Popup.Archives");
               // MessageBus.Default.Publish("Popup.ArchivesClick");
            }
    1. Call the javascript directly;
    2. Send a message on the bus and call the javascript function;
    3. Send a message on the bus and fire the click event on the ImageButton;


    I guess I can't mimic the ImageButton click so that the window.open isn't blocked.
    Last edited by Daniil; Apr 24, 2015 at 12:19 PM. Reason: [CLOSED]
  2. #2
    Hi Chris,

    Yeah, a browser block a popup that is done in the context of AJAX request.

    Curious, does this work for you?
    X.Js.AddScript("setTimeout('showInfo();', 100);");
    Last edited by Daniil; Apr 15, 2015 at 4:19 PM.
  3. #3
    I feel you might not got a notification about my answer. So, posting a follow-up.
  4. #4
    No ... the suggestion did not work either.
    X.Js.AddScript("setTimeout('showInfo();', 100);");
    I also tried:
       MessageBus.Default.Publish("Popup.ArchivesClick");
    Where the MessageBus listener performed:
       <ext:MessageBusListener Name="Popup.ArchivesClick" Handler="App.mpInfo.el.dom.click();" />
    Since pressing the ImageButton directly showed the contents of an html file via window.open without any popup blocker I was hoping that I could do the same thing during the Page_Load while interpreting the ClientQueryString. But it doesn't seem possible.

    One thing that I didn't mention above is when I call the window.open I am using the third parameter to set various attributes for the window (such as window width & height, top & left, screen & screen, scrollbars and resizable).

    If you have no more suggestions you can close the thread.
  5. #5
    Could you, please, provide an exact test case to reproduce the problem? To avoid misunderstanding. I would take a look in greater details.

Similar Threads

  1. Replies: 1
    Last Post: Oct 23, 2015, 4:56 PM
  2. [CLOSED] Open a modal popup from a modal popup
    By Aparna_B in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 24, 2012, 8:58 AM
  3. [CLOSED] Button event is not firing in parent window from popup window
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2011, 7:35 PM
  4. Replies: 1
    Last Post: Mar 14, 2011, 4:20 PM
  5. [CLOSED] open popup window
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 06, 2009, 2:13 PM

Posting Permissions