Apr 15, 2015, 12:13 AM
[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.
I guess I can't mimic the ImageButton click so that the window.open isn't blocked.
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");
}
- Call the javascript directly;
- Send a message on the bus and call the javascript function;
- 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]