AIR: allow scripted window.open popup windows for specified sites ?

I'm adding desktop interaction to an existing webapp using AIR.
The webapp allows portlets to be undocked into their own window using a scripted "window.open" call.
When running the webapp in AIR, the "window.open" call is blocked (window ref returned is "undefined").
Presumably AIR is detecting the invocation of "window.open" isn't directly linked to the mouse click event.
With a "standard" browser, you can configure the popup blocker to allow popups for urls specified as Exceptions.
Is there a way to do this in AIR ?  (either by config or by overriding one of the AIR classes).
I've looked at using a custom HtmlHost but the popup blocking occurs before the HtmlHost.createWindow () call

I couldn't find a way to customize the pop-up blocker in AIR.
I tested the same thing with Safari 4.0.5 (AIR uses WebKit 4.0.3) and got the same result.
After some testing I found that changing the Javascript to ensure that the event was bound to "onClick" fixed it (previously was bound to "onMouseDown")

Similar Messages

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • In Address book print window opened too large for window.  Unable to close

    Using Address book,   trying to print lables for a group, print window opened to large for window.... cannot cancel or close out.

    In general, in any window presented which calls for user action, if a button is highlighted (usually in blue if the OS is in charge) then pressing Return or Enter will do the same as clicking that button.
    Most of the time the highlighted button is the one which is most usable - the "Print" button in that dialog window, for example, or the "Save" button in a Save dialog window.
    The keystroke Command-. (Command-periodkey) will usually invoke a "Cancel" button if such is present in a window.

  • Error: Open popup window failed

    Hi,
    I'm opening a web page in an StageWebView and by trying to click a link that should open a window, I receive this error:
    [StageWebView] Error: Open popup window failed
    This is the link "Invite your friends" at Google:
    https://developers.google.com/+/web/share/interactive#myBtn
    How to fix that? I hope anybody got an idea!

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Firefox 3.6.6 for Windows opens blank window the first time it is launched

    Firefox 3.6.6 for Windows opens blank window the first time it is launched
    == This happened ==
    Every time Firefox opened
    == Upgraded to 3.6.6

    Hello Gary.
    Go into ''Tools > Options > General > Startup:When Firefox starts:'' and configure it as you like.

  • Open popup window and bring text to opener window jsp [help~]

    how to click a button then open popup window.
    and add somthing in the popup window, that can bring the text in the popup window to opener window in jsp.

    This is a javascript/html question, and has nothing to do with Java/JSP.
    You could do it with plain javascript/html using window.opener.
    I would recommend using something like a [YUI 2 Panel|http://developer.yahoo.com/yui/container/panel/] to do it.
    Opening new windows is a thing of the past.

  • One specific webites's zoom is too big how can I decrease the zoom. (the font is normal) If I open new tab for new site that's normal. Im using a laptop. THANKS

    One specific webites's zoom is too big how can I decrease the zoom. (the font is normal) If I open new tab for new site that's normal. Im using a laptop. THANKS

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Can't open popup window in item renderer

    I have a datagrid with two columns. Each column has it's own
    itemRenderer. The itemRenderers have there own class. In one
    itemrenderer I have a link button and it has a click event that is
    associated with it in the script block of that class. Inside the
    click event I have the following code to create a popup:
    var popup_win:MyWindowType = MyWindowType
    (PopUpManager.createPopUp (this, MyWindowType , true));
    When I click the linbutton I will see a flash and a blur
    affect as if the window is trying to open but never does. I've
    traced "this" and it's the renderer... So I tryed to reference back
    up the that class that has the datagrid control... which is
    this.parent.parent.parent... but that doesn't work either. I'm
    basically trying to open a window that allows the user to choose
    some stuff from a radio button and then when they click ok on the
    popup window it does some validation and then the contents get's
    changed in the cell that it came from. I want the popup to open
    upon clicking of the link button or else I would use the editor
    functionality. Any ideas of how I could do this?

    Good Day
    I had the same idea for an itemrenderer....but I'm using the
    mouse_over event.
    A titlewindow pops up when moving over a row in the datagrid,
    and closes when moving out.
    The intent of the popup is to show some charts and additional
    links.
    However, when the popup shows, and I move my mouse into the
    popup box, the mouse movements are still being registered by the
    datagrid row below the popup box...hence making a new popup box
    appear every time I move the mouse.
    I tried to set focus on the popup alone...but still doesn't
    work.
    Here's the itemrenderer code:
    <mx:Text xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="_OnCC()" mouseOut="_mOut()">
    <mx:Script>
    <![CDATA[
    import mx.core.Application;
    import flash.events.MouseEvent;
    import mx.managers.PopUpManager;
    //import mx.controls.Alert;
    private var pop1:_popup_gridb;
    public var currentColumn:String = "";
    public function _OnCC():void{
    var currentXml:XML = new
    XML(data..field.(@columnname==currentColumn));
    text = currentXml.@value;
    text = text.toUpperCase();
    addEventListener(MouseEvent.MOUSE_OVER, _mOver);
    //addEventListener(MouseEvent.MOUSE_OUT, _mOut);
    private function _mOver(event:MouseEvent):void{
    //Alert.show("Hello World");
    pop1 = _popup_gridb(
    PopUpManager.createPopUp(DisplayObject(this.parentApplication),_popup_gridb,false));
    //PopUpManager.createPopUp(Application.application as
    Sprite,_popup_gridb,false));
    //PopUpManager.createPopUp(this,_popup_gridb,false));
    pop1.showCloseButton=true;
    pop1.id = "_pu" + Math.random();
    //pop1.dataView = dv;
    pop1.title = pop1.id.toString();
    PopUpManager.centerPopUp(pop1);
    //removeEventListener(MouseEvent.ROLL_OVER,_mOver);
    private function _mOut():void{
    PopUpManager.removePopUp(pop1);
    //addEventListener(MouseEvent.ROLL_OVER, _mOver);
    ]]>
    </mx:Script>
    </mx:Text>
    Currently, the popup is just a titlewindow w/a datagrid
    inside.
    thx
    j

  • Open popup window from non graphic window

    Hi All,
    i'm trying to open a popupwindow of one of my classes, but i
    have no parent reference in the current class that i'm working
    with, how can i refer to the main application window?

    If you have a model for your application state, use this:
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="this.onApplicationComplete()">
    <mx:Script>
    <![CDATA[
    private function onApplicationComplete():void
    // Component map
    this.model.map["app"] = this;
    ]]>
    </mx:Script>
    </mx:Application>
    You will be able to refer to this.model.map["app"] as the
    parent of your popup window from anywhere in the application.

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • My computer suddenly stopped allowing me to open new windows in firefox, how do I reset it to do this

    last week my computer (a thinkpad) stopped letting me open new windows by pushing the + key in a window, so now when I search it replaces the open window. what happened and how do I fix it?

    The suggestion by TonyE will remove the toolbar from Firefox.
    To remove the Ask Toolbar completely from your entire system, see:
    *http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    <br />
    <br />
    '''Other issues needing your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
    <br />
    *Adobe PDF Plug-In For Firefox and Netscape
    **Current versions are 9.4.2 and 10.0.1 (Reader X)
    **More info about version 10.0.1 (Reader X)
    ***New Adobe Reader X (version 10) with Protected Mode was released 2010-11-19
    ***See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    *Shockwave Flash 10.0 r32
    **Very old version
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file, SAVE it to your hard drive, when complete, close Firefox, click on the installer you just downloaded and let it install.
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE

  • Open PopUp Window without Title

    Hi all,
    How can I open a PopUp window without title?
    I have only one command related to window title:
    window.setTitle(string);
    But I need it without title at all.
    Any idea?
    Thanks,
    Michael

    Hi
    Very First tell the version of NWDS?
    Second  have a look on this [this|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0c6132f-4ea3-2b10-4d8f-e68d2e96113d]
    (Here context is different but we can say based on this article that some workaround we can do(applicable only  for CE EHP1))
    Third We can give not exactly  but a little different solution to this (your )  problem
    1. By using  buttons with has no text only standard icons provides by sap ( X ) in red color.with associating action which close the popup.(button will be at right corner of popup with red signal will gives a intuitive feel like normal window )
    2. Some places i have seen(in CE version) that SAP uses this options(normally when they provide some kind of help).
    Best Regards
    Satish Kumar

  • Javascript to open popup window and disable parent window

    Hello,
    Can anyone please help me the javascript issue.
    I have a button which opens up a pop window and when this popup window is opened i want to disable the parent window and enable it when i close the popup window.
    can anyone please help me with a possible approach.
    Thanks,
    Orton
    Edited by: orton607 on Aug 25, 2010 2:19 PM

    jari,
    I have a problem with this modal window approach and I have noticed. The thing is I am able to open up a popup window which is a simple data entry form. In this form i have the button Create which calls a javascript function and then an pl/sql insert process.
    Below is the javascript function for the button create
    function createNew()
    doSubmit('CREATE');
    alert('Successfully inserted the record. Click OK to close popup window and to \n view details of the new inserted record please select the table on parent window.');
    window.close();//close the popup window
    window.opener.doSubmit('REFRESH');
    //call doSubmit function on the parent window to cause the page to refresh.
    }The problem, i have is when i open up a popup window in this window when I click on the create button, its again opening up a new empty window. i don't understand what might be the problem.
    can you please help me out with this one.
    thanks,
    orton
    Edited by: orton607 on Aug 25, 2010 4:19 PM

  • Using same opened popup window

    Hi,
    I have a scenario where I have 4 button in a view and I have to open same external URL window for all 4 buttons.
    Now user wants to use same popped up window (if already opened). He doesn't want to open same window again and again.
    Currently I am using non-modal external window code to open this window.
    wdComponentAPI.getWindowManager().createNonModalExternalWindow(DAS_URL).show();
    Can you please tell me how do I achieve this req?
    Please help.
    Thanks and regards,
    Amey

    Modify your code to have a handle for your window:
    IWDWindow window = null;
    //when button is clicked:
    if (window == null) {
        window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(DAS_URL).show();
    else {
        // do nothing, window is still open
    window.destroyInstance(); //this will close your window
    window = null;
    Hope this helps!
    Best regards,
    Robin van het Hof

Maybe you are looking for

  • Multiple LDAP Providers?

    Is it possible to have multiple LDAP providers configured within one UCM instance? Users from A.DOMAIN.COM and users from B.DOMAIN.COM can authenticate with and share one UCM? This is of course not taking into consideration how security would be set

  • Source system info in the transformation

    Hi, How to get the source system information in the transformation or start routines? Is there FM or field which tells what source system the datasource is assigned to in the transformations ? Regards, Kalyan

  • How to use notifier

    Hello, I will try to creat extention for photoshop in Flash Builder 4  using CS Extention Toolkit 3.4. For automatic or something happen, i think we have to used notifier but i do't no how to used it and  where i have to code that thing. Or any other

  • Disable hyperlink trigger of Mac Mail

    I think I may wish to disable Mac Mail. The problem is that when I click on a hyperlink in a document cell in a pread sheet that contains a hyperlink (e-mail address) my Mac automatically starts Mac Mail and presents a new mail message that is alread

  • Setting up DNSS

    I'm trying to set up DynDDNS.org through my router.  Everytime I type my dynddns password it goes to the "settings are successful" screen and returns to the DDNS screen only to have my password changed to some other 16 digit password (my [password is