NavigateToURL() New Window Foiled by Popup Blocker

Im currently using the following line of code to open a new
window with the URL specified...
navigateToURL(new URLRequest('
http://www.mysite.com'),
'_blank');
However, pesky Internet Explorer is blocking the new window
as a popup everytime - Is there a documented way to get around such
an issue?

I should have prefaced this better by saying the setup looks
like this in its complete form...
<mx:Canvas x="10"
y="22"
width="220"
height="31"
backgroundColor="#ffffff"
backgroundAlpha="0.01"
buttonMode="true"
click="onLogoClick()"
id="canvas1"></mx:Canvas>
Seems that the forum butchered my code, but very basically -
Its a canvas item with a click event handler that executes the
function below..
private function onLogoClick():void {
soundGlobal.play();
navigateToURL(new URLRequest('
http://www.mysite.com'),
'_blank');
I assume this should still work on the same premise of
opening in response to a user click...

Similar Messages

  • I want to suppress the display of additional windows with a popup blocker

    I am on the website "nscorp.com" and am trying to open a window in the website. I am getting the message " The info is displayed in a new window. If you want to suppress the display of additional windows with a popup blocker, you must first deactivate this."
    How do I do this?

    I'm not sure what you want to achieve?
    Do you have a problem with displaying pop-ups and can't you open a pop-up or do you want to suppress a pop-up or do you get a notification?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).

  • How to create a new window ?(not popup windows)

    How to create a standard window to show my web dynpro window so that the print button can be used ?

    hi , you are right , the blog tell me how to create a popup window , but I wanna to create a new window so that I can use the functions provided by the browser , what shall I do ?
    Regards ,

  • Using navigateToURL and ExternalInterface.call triggering popup blocker

    I have a button and a text field.  Clicking the button sends the text to a backend server where it does a profanity filter.  I'm using an event listener to get a response from the back end.  If there is no profanity, the swf does a navigateToURL.  Unfornetly the url request is blocked by many browsers.
    When I skip the profanity filter and the navigateToURL is fired in the MouseEvent function then it doesn't get blocked.  I've read this is expected, it's a security feature.
    Is it possible to put a function inside my MouseEvent function, or someway of getting a response from the server all inside the the MouseEvent function?
    Thanks!

    I had to change it to this to get it to work:
    btn.addEventListener(MouseEvent.CLICK, buttonEvent);
    btn.dispatchEvent(new MouseEvent("click"));
    Thank for this Klad, I might have use for it someday, but you are right, it didn't trick the browser.

  • Open in a new window.

    I created one jsp page with One input field and a submit button.
    once user enter some data into the input filed and click submit button, it will go to the database and will display the matching information on the same window.
    My peoblem is, once user click on the submit button, I need to display the information into a new window or a popup. is there any way somebody can help me
    Thanks in advance. and here is the code
    <%@ taglib uri="tagLib" prefix="hbj" %>
    <jsp:useBean id="contactSearchBean" scope="request" class="com.flightsafety.bsd.bean.ContactSearchBean" />
    <hbj:button id="search"
    text="Search"
    onClick="onSearchButtonClicked"
    />
    </td></tr>
    </table>
    <p>
    <%if(contactSearchBean.isSearchResultAvailable())
    %>
    *******from here I need do display into a popup
    <table>          
              <%
              java.util.Vector searchResult = (java.util.Vector) contactSearchBean.getSearchResult();
              String title =contactSearchBean.getSearchString()+"-- Search result ("+searchResult.size()+")";
              %>
         <tr>
                             <td>
                             </td>
                        </tr>
              <tr>
                             <td>
                                  <hbj:textView
                             id="Title"
                             text="<%=title%>"
                             design="EMPHASIZED"
                                  />
                             </td>
                        </tr>
              <%
              for (int i=0; i<searchResult.size();i++)
                   com.flightsafety.bsd.bean.SearchResultBean bean = (com.flightsafety.bsd.bean.SearchResultBean)searchResult.get(i);
                   String name=bean.getUserName();
                        <tr>
                                       <td>
                                            <hbj:textView
                                       id="<%=name%>"
                                       text="<%=name%>"
                                       design="EMPHASIZED"
                                            />
                                       </td>
    %>
    </hbj:gridLayoutCell>
    </hbj:gridLayout>
         </hbj:form>
    </hbj:page>
    </hbj:content>
    and I did coding for the onclick
              public void onSearchButtonClicked(Event event) throws PageException
    here the data will find and store into the bean and return back
                   return searchResult;
    I will provide more information if you need.

    I don't remember the exact syntax, but I think you can specify target = 'external' in the on click event. Check the MSDN site for an example.

  • To open Adobe Interactive Form in New Window

    Hi Folks
    I want to open Adobe interactive form in new window not in popup. This form should contain data passed from parent view.
    Please help
    - Mandeep Virk

    Hi,
    Can you explain your requriement clearly.
    You have two views ParentView and PDFView. Two views embedded in Window1.
    By default ParentView will be displayed.
    Now you are navigating from ParentView to PDFView. Then ParentView will be replaced by PDFView in Window1.
    So here what is ur requriement. Why do you want an seperate Window here.
    If you want to open the PDFView in a popup. Just create another Window2. Ember PDFView in Window2. Now from ParentView opent Window2 as a model/external popup.
    Open View or Window in a external window (popup)
    Regards,
    Charan

  • Hotmail opens in new window (w/o toolbars) rather than in new tab

    Hotmail opens in new window rather than new tab. Problem only occurs with hotmail.
    == URL of affected sites ==
    http://http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1253879194&rver=6.0.5285.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&lc=1033&id=64855&mkt=en-us

    Hotmail may have changed their software recently to open an email message in a new window, and also to block the toolbars from showing in that new window.
    They may be using JavaScript to open that pop-up. Or they may have come up with a way to overcome certain Firefox preference settings. ''(I don't know which it might be, I quit using Hotmail back in 1999, when I took the "training wheels" off my PC and I quit wearing short pants. ;-)''
    1. Tools > Options - Tabs
    You can select '''Open new windows in a new tab instead''', and see it that works for you.
    2. The JavaScript Options extension adds options to Firefox's JavaScript Advanced dialog window (Content tab in Options), which allows you to override websites that suppress the Toolbars in pop-up windows.
    https://addons.mozilla.org/en-US/firefox/addon/6527

  • Open certain webs in a new window

    Hi,
    I like the normal tab behaviour: all the 'external' links to a new tab. But I'd like that when the page A is called (http://www.example.com) it opens in a new window. Only for that site.
    Is it possible this situation?
    I've a reason for that. I've an enterprise java application that opens an external link (http://www.example.com) and it's necessary to open it in a new window, like a popup. If it opens in a new tab the Firefox window remains in the background and people can't see the new tab. Another problem is that when people want to close the tab they close all the Firefox...
    Thx

    By default, Firefox will make an exception and launch a new window instead of a new tab only if it is opened using the JavaScript window.open() function and specifies certain features, such as a specific window size or hiding certain toolbars. I don't think an external program can trigger this built-in logic, but perhaps there is a way.
    I think Plan B would be an add-on that lets you manage the new window/new tab choice based on the host name. Over the years, many tab-related add-ons have been developed, but I haven't researched their features to see whether this option is already available.

  • Required information about opening new window using hotkeys...

    Hi,
    From my application page, a new window have to popup with few of my table fields (it should be a separate window, Not like when you right click on page you will get a popup with cut, copy, paste etc) using HOTKeys. Kindly point me to the useful docs.
    Regards,
    SelvaKumar S

    Do you mean you need [javax.swing.Popup|http://java.sun.com/javase/6/docs/api/javax/swing/Popup.html] ?
    Create a Popup using PopupFactory, using a Component which listens to your hotkeys.

  • POSTURL opening PHP in new window (and shouldn't)

    We are calling a PHP file from Authorware 7. Originally,
    nothing would
    happen when the php file was called and the server would time
    out and act as
    though the php file could not be found (with a 5006 error).
    But we finally
    realized that it wanted to open the php file in a new window
    - with a popup.
    We are using a normal posturl:
    temp2 :=PostURL(NetLocation^"gSysSet.php","",30)
    All the php file has in it is 1 line with a echo command.
    Does anyone know why the php would open in its own window?
    There was a posting earlier about POSTurl and php and we have
    checked the
    same things that they had in the php.ini file, but cannot
    make it just
    execute from Authorware and return a result - instead of
    returning the
    result in a new window. What happens is we still get the 5006
    error in
    Authorware because the result is returned in a new window and
    opened in a
    new window so Authorware isn't really communicating with the
    php file.
    Any suggestions would be appreciated.
    Julia

    Does your html page access it as HTTPs?
    "Julia" <[email protected]> wrote in message
    news:[email protected]...
    > Yes, I have created a dummy forum in html and it returns
    the value
    > correctlys.
    > Also, the value passed is returned ONLY when run under
    HTTPs - nor with
    > HTTP.
    > Julia
    >
    >
    > "Amy Blankenship *AdobeCommunityExpert*"
    > <[email protected]>
    > wrote in message
    news:[email protected]...
    >> Usually if it returns back what you sent, an error
    occurred. Does the
    >> php
    >> page work if you hit it from an HTML page with the
    same value passed from
    > a
    >> form field?
    >>
    >> -Amy
    >>
    >> "Julia" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >> > Thank you Steve for the link.
    >> >
    >> > I made the change per your blog (I passed a
    variable-name pair to the
    > php
    >> > file) and now the php does not open in a new
    window and returns the
    > result
    >> > correctly.
    >> >
    >> > This is step one. Now it still doesn't work
    under SSL/HTTPs (which is
    > why
    >> > we
    >> > were going the POSTurl route). The PHP file
    doesn't open in its own
    > window
    >> > anymore (which it did under http AND https),
    but the difference now
    > under
    >> > HTTPs is that the variable-name pair I sent the
    PHP is being returned -
    >> > not
    >> > the actual result from the echo command in the
    php. I also tried
    >> > putting
    >> > the
    >> > variable-name pair as a ? after the filename
    and it didn't make any
    >> > difference. I also went ahead and put in a
    $_POST to receiev the
    > variable
    >> > and it didn't make any difference. Still
    getting the 5006 error as
    > though
    >> > it
    >> > can't find the file.
    >> >
    >> > We are getting the same symptoms that Chris
    Volkman got back in
    > 2-28-2006.
    >> > He was able to correct the problem by changing
    the php.ini file. I
    > checked
    >> > all of our settings and they are already
    exactly like the changes he
    > made.
    >> >
    >> > Any ideas?
    >> > Julia
    >> >
    >> > -----------------------------
    >> > THE AUTHORWARE CODE:
    >> >
    >> > temp2
    :=PostURL(NetLocation^"gSys.php","myvar=true",20)
    >> > -------------------
    >> >
    >> >
    >> > THE PHP CODE:
    >> > -----------------
    >> > <?PHP
    >> > header("cache-control: no-cache,
    must-revalidate");
    >> > //header("Pragma: no-cache");
    >> > ?>
    >> > <?php
    >> > $myvar = "strange";
    >> > if (isset($_POST['myvar'])) {
    >> > $myvar = (get_magic_quotes_gpc()) ?
    $_POST['myvar'] :
    >> > addslashes($_POST['myvar']);
    >> > }
    >> > echo "myvar is now=".$myvar."\n\rI'm in the
    gSys.php file.";
    >> > ob_end_flush();
    >> > ?>
    >> > ---------------------------------
    >> >
    >> >
    >> >
    >> >
    >> >
    >> >
    >> > "Steve Howard **AdobeCommunityExpert**"
    > <steve@$NoSpam$tomorrows-key.com>
    >> > wrote in message
    news:[email protected]...
    >> >>
    >> >> "Julia" <[email protected]>
    wrote in message
    >> >> news:[email protected]...
    >> >> > We are calling a PHP file from
    Authorware 7. Originally, nothing
    > would
    >> >> > happen when the php file was called
    and the server would time out
    >> >> > and
    >> > act
    >> >> > as
    >> >> > though the php file could not be found
    (with a 5006 error). But we
    >> > finally
    >> >> > realized that it wanted to open the
    php file in a new window - with
    >> >> > a
    >> >> > popup.
    >> >> >
    >> >> > We are using a normal posturl:
    >> >> >
    >> >> > temp2
    :=PostURL(NetLocation^"gSysSet.php","",30)
    >> >> >
    >> >> > All the php file has in it is 1 line
    with a echo command.
    >> >> >
    >> >> > Does anyone know why the php would
    open in its own window?
    >> >>
    >> >> Check this out
    >> >>
    >> >>
    >> >
    >
    http://stevehoward.blogspot.com/2005/02/cold-fusion-and-authorware-posturl.html
    >> >>
    >> >>
    >> >> I ran into the same thing a coupe of years
    ago.
    >> >>
    >> >>
    >> >> Steve
    >> >>
    >> >>
    >> >> --
    >> >> EuroTAAC eLearning 2007
    >> >>
    http://www.eurotaac.com
    >> >>
    >> >> Adobe Community Expert: Authorware, Flash
    Mobile and Devices
    >> >> My blog -
    http://stevehoward.blogspot.com/
    >> >> Authorware tips -
    http://www.tomorrows-key.com
    >> >>
    >> >
    >> >
    >>
    >>
    >
    >

  • New window everytime when submit button clicked in JSF

    Hi all,
    I am facing an issue where I need to popup a new window everytime the submit button on my JSF form is clicked.
    I have tried several methods but none is working to my purpose.
    1. Add a target="_blank" attribute in the JSF form. The problem is that even if any of my ValuechangeListeners get invoked, the page is rendered in a new window. My ValuechangeListeners work on onchange="submit()".
    2. Invoke a new window from javascript and name the window as say" new" . Also name the form's target as "new" but this does not generate a new window everytime and also problem 1 persists.
    3. If i use actionlistener and onclick event on button in the form, then the new page is rendered in both current page and new window.( javascript for new window is written).
    What I need is when a person clicks on submit button in the form, a new window should always popup up and the page should be rendered in the new window. The original form should remain as it is so that a user can again do a submit and get a new window.
    Please suggest.

    devayani wrote:
    Thanks all for the replies.
    Try onchange="this.form.target='_self';submit();"This works fine if all the valuechangelisteners are invoked. Suppose,if I dont select the radio
    button and dont select any values in list box. Now if i click submit, since the target=_blank,
    the page giving validation errors (for not selecting the list box)
    renders in a new page. As expected behavior, not my solution.
    If you need validation to remain in the same window (and that seems like the best for the user experience you have described), then delay the creation of the new window until after the request finishes. I.e., your page should always go back on itself. Under the right conditions (which you can set in your action method) it conditionally writes JavaScript which targets the new window.
    >
    Try returning false from the onclick event.I had tried it long back, so I just messed it up while writing, there were no actionlisteners.
    sorry about my third solution, lets consider solution 2 as below:
    Javascript
    <script type="text/javascript" >
         function newWindow(){
              window.open('','mywindow','width=400,height=200');
              return false;
         </script>
    JSF
    <h:form id="Frm_New" target="mywindow">     
    <h:commandButton id="btn_submit" disabled="false"             
                  action = "#{TestBean.submitValues}"
                  value="#{bundle.SC_SUBMIT}"
                  onclick ="newWindow()">But again this approach has above problems and also no new window everytime. For new window you said:
    Append a time stamp or random number to
    the end of the window name.This solution will not work as I have to reset the target for my form everytime to this new window name.You can remember the name of the window if necessary. Although you seem to be changing things on the fly; earlier the problem was you didn't get a new window every time. Or are you just confused on how to set the target?
    onclick="var wname = getWindowName(); createNewWindow(wname); this.form.target = wname; return true;">
    I was trying to actually set the target of the form as _blank at runtime during one of the phases of JSF lifecycle ( by using phaselistener). Although its not working as of now. Does this sound a good approach
    This is because I dont think that setting it on jsf would work as the page rendering on a new window( in my case) not only depends on clicking the submit button only but it depends on whether the user is done with all vaildations and now has to see the final result into new window.This would be addressed by the conditional JavaScript solution above.

  • How do I block a popup window that I have allowed to open on Firefox once? I now have the popup blocker set to block all sites, but the popup still opens every time I open Firefox or open (sometimes) a new tab.

    How do I block a popup? I allowed this popup to open once. Now I have set the popup blocker to block all sites but this popup still opens every time I open Firefox and sometimes (usually) when I open a new tab.
    I Have stopped and restarted Firefox multiple times.
    I have rebooted the computer.
    I have set the tools/options/content/block pop-up windows/exceptions to block all sites (no exceptions).
    I have no other issues with Firefox.
    I have Adblock plus (with (1) subscription) installed
    I am currently using Firefox version 4.0 on Windows7 Ultimate.

    Just to address the last point: check your History menu to see whether you have the Restore Previous Session option and use that if you can. If that is grayed out or doesn't restore everything, check the Recently Closed Windows and Recently Closed Tabs lists for other pages.
    The unwanted window may be generated by an add-on. Try disabling ALL nonessential or unrecognized extensions on the Add-ons page. Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable.
    Usually a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    Here are some other things to check:
    (1) user.js file that changes Firefox startup behavior and overrides your preferences. This article describes how to track that down and delete it if you have one: [[How to fix preferences that won't save]].
    (2) Possible hijacked shortcut. Check the "target" of the desktop icon you use to start Firefox to see whether it lists the unwanted page. To do that:
    right-click the icon > Properties > Shortcut tab
    For 64-bit Windows 7, the Target should be no more and no less than this:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    (3) Possible undisclosed bundle items. If you have installed any free software recently, check your Windows Control Panel, Uninstall a program for surprises. If you click the "Installed on" column head to group by date, it is easier to spot bundled junk. Remove everything suspicious or unrecognized.
    (4) Supplemental clean up scans. Our support article lists tools other Firefox users have found helpful: [[Troubleshoot Firefox issues caused by malware]].
    Hopefully that cures it.

  • Links set in XHTML Transitional with target="_blank" are not opening in a new window. I have allowed popups and turned off ad blocker, but the links still open in the same window.

    This is on a Wordpress install. Is there a Firefox setting I'm missing? Otherwise, I shall have to install a javascript plugin to do this, which seems overkill for what used to be common code.

    I don't know how to delete my question, anyway I'm not having this problem anymore. In our organisation the IT department deploy Firefox updates with certain settings and limitations, in the tap-options the checkbox for opening new windows in new tabs where checked but disabled. They made some changes to make this checkbox enabled and now it works as expected if it's check new windows open i new tabs and if it's not in new windows. They never opens in the same tab as they did before.

  • New window popup does not open on Windows

    hi,
    when I open an new window in a Premiere HTML5 extension on Mac, it works,
    but no window opens on Windows.
    newwindow = window.open('www.adobe.com','name','height=200,width=150');
    Trying to apply moveTo() or focus() after open() returns Cannot call ... method of undefined.
    I wonder what causes this, probably it just gets blocked. By Windows? Premiere on Windows? Chrome in the extension on Windows?
    Is there something I can do about this?
    I cannot open it in the default browser because ultimately the window popup is a Paypal popup
    opened by a webpage loaded in an iframe- which gives the same result as trying to open a window directly from within the extension as described above,
    thanks,
    Jeff.

    This is a known issue of CEP; we disabled these methods (with window.open() or <a href=url >) to open a new page. A work around is using API CSInterface.openURLInDefaultBrowser(url) to open it in system default browser. I am afraid that CEP does not provide other work around methods if openURLInDefaultBrowser() cannot suit your requirements.

  • Firefox does not want to open popup or when I do "file new window" it does not open it too.

    When I click on a link that opens a popup, firefox does not open it. Same for "File> New Window." Then, often after Firefox starts to malfunction and no longer wants to open my bookmarks. I uninstalled and reinstalled firefox, removed all extensions .. But this does not solve my problem. can you help me please?
    Excuse me for my mistakes in English, I am a French person and I try to speak English the best I can so that you can solve my problem. Thank you.
    == This happened ==
    Every time Firefox opened
    == I clic on a link that opens a popu

    Your above posted troubleshooting list shows quite a few extensions.
    Did you really disable all of them and still had the problem?
    See [[Troubleshooting extensions and themes]]
    Which security software (firewall) do you have?
    Some can block pop-ups as well.

Maybe you are looking for

  • Error 1327, Invalid Drive - Solution Found

    I recently merged two partitions on my PC from C:\ and D:\ to just C:\ and started getting the 'Error 1327' message when starting iTunes. I tried upgrading, then uninstalling/reinstalling iTunes and continued to get the same error. The reinstall bomb

  • Report to see the value of material at storage bin level

    Hi, The requirement is to see the quantity and value of material stored at storage bin level. Is there any standard report available to see the same. thanks

  • Can't move files around primary hard drive or to trash without authenticating

    Just installed Lion and now whenever I drag a file to a folder on my primary hard drive, I have to authenticate. Same with sending stuff to trash. When I do get it to trash, the items disappear without me telling it to empty trash.

  • Can't start OC4J instance

    hi all i can't start OC4J for forms , this happend after installed jdeveloper 10.1.3 on IDS 10.1.2.0.2 if any advice to help me in this issue thanks

  • Any advice? Canon 6D and CS5

    So my CS5 will not read my Canon 6D files when I shoot in RAW. I figured out how to convert(dowloaded the DNG converter)  but now a new problem! Can someone explain this... The photo that I have taken on my Canon 6D is 19.1 MB. When I take it off my