Link to url, "_self" is opening a new page...

I am trying to get my button to navigate to _self and the link is opening a new page. Is there something wrong in my code?
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("myurl"), "_self");
Thank you in advance for any help!

both parameters are strings or string variables.  you're using a variable (which shouldn't be in quotes).
here's a sample:  http://www.kglad.com/Files/forums/Untitled-2.html
and, assuming that works for you:  http://www.kglad.com/Files/forums/Untitled-2.fla

Similar Messages

  • Link to URL -- pdf should open in new window - Error

    Hi experts,
    I have a Web Dynpro Application with an ALV and a link to url in one column. The code is ok. It works fine. When I click on the URL a new browser window opens with the correct URL, but I get an Error --> "The requested URL could not be retrieved".
    It should be a pdf. But Acrobat Reader does not open. If I put the URL in Firefox Browser, it works perfect. Acrobat Reader opens and shows the pdf.
    The same happens when I use Windows 2000 System with Internet Explorer version 6.0.2800.1106.
    I have normally Windows XP with Internet Explorer version 6.0.2900.2180 with sp2.
    What can that be? On both computers I have the same version of Acrobat Reader with the same configuration.
    Had someone of you this problem, too? Who can help?
    Thanks a lot.
    Best regards,
    Ingmar

    I answered it myself. I had to look that for the called server no proxyserver will be used...

  • Link to URL - How to Open a New Tab

    I have created some PDF's in Adobe Acrobat and I am hosting them on my website. So for example here is one: <possible spam link removed - kglad>
    I have created links to URL's using the Link Properties tool, Actions tab. However it will only open the URL in the same tab.
    Is it possible to have the URL's open in a new tab?
    Hope someone can help.
    Heath

    You need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.

  • Url won't open in new page.

    I have a multiple action click box that is suppose to open a Url and make some text appear. The problem is it won't let me
    select "New" from the drop-down menu to open the link in a new page. Every time I do it reverts back to Current. It will also let me select Parent or Top, but not New.
    What am I missing?
    Thank you.

    Found the problem. Seems to be a bug. The drop-box won't change but if you set it to "New" and then publish, it works. The box will still say "Current", but it will open a new window.

  • Opening a New page on click of a link in Struts PDK portlet

    Hi All,
    Please help me to sort out my issue..
    I created a portlet(say P1) using struts Portlet.That portlet is added to a portal page..which has some other portlets already(p2,p3,p4)...So my portal page has 4 portlets p1,p2,p3,p4..In Portlet P1 There is JSP which has a link inside...When i click on the link..I need to open a new JSP page with some prepopulated data inside it..Now the problem is..it is opening a page with data..but in the new page i am seeing all the remaining portlets as well..P1(with new data),P2,P3,P4 portlet..
    But i need to see only the JSP page with my new content..please help me with this..
    Here is the code...what i have written
    INDEX.JSP
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <html:link action="/sayActionHello" target="_blank">My Link</html:link>
    </body></html>
    ACTION CLASS
    public class SayHelloAction extends Action {
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    System.out.println("Inside execute ................................");
    PortletRenderRequest pReq = (PortletRenderRequest)
         request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderSession pSession = pReq.getSession();
    if(null != pSession){
         System.out.println("Inside---pSession...........................");
         pSession.setAttribute("sample","Sample Data for Testing");
    return mapping.findForward("success");
    Provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>samstruts</name>
    <title>samstruts</title>
    <description>sample struts Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
    <defaultAction>/sayHello.do</defaultAction>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    Strutss-config
    PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <action-mappings>
    <action path="/sayHello" scope="session" type="com.up.tey.SayHelloAction">
    <forward name="success" path="/jsp/index.jsp"/>
    </action>
    <action path="/sayActionHello" scope="session" type="com.u p.tey.SayHelloAction1" input="/htdocs/jsps/index.jsp">
    <forward name="success" path="/jsps/indexsample.jsp"/>
    </action>
    </action-mappings>
    </struts-config>
    Indexsample.jsp
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <h1>HELLO WORLD Sample using Struts !!!!!!<%=session.getAttribute("sample")%></h1>
    </body></html>
    In new window i am cing Indexsample.jsp inside my P1 portlet..But the remaining 3 portlets(p2,p3,p4) are also there..Which i dont want..Please Help..this is really very urgent for me..

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • When I click a link to open the page in new tab, it open the new page beside my page.

    After I update FireFox to version 3.6.8, I could not open the new page in the last tab, it always opens the new page in beside the tab.
    Mmm…I could not make sure the new page or new tab I said is the same with you…?? (I use Chinese version so that I don’t know if it’s the same or not…)
    A window could open several pages with different tabs, and I could click different tab to different page, right?
    If I right clicked a link to open the page to “new tab” in the same window, the new tab opened in the last tab of my window.
    But after I update FireFox to version 3.6.8 and I click a link to open the page to “new tab” in the same windoe, the new tab will open beside my page. (Mmm…Open on right of my page.)
    I would like the “new tab” open to the last tab in my window, not “beside” the tab I used. How could I change the setting??)
    == This happened ==
    Every time Firefox opened
    == After I update FireFox to 3.6.8

    That feature isn't new to 3.6.8, it was changed in 3.6.
    Type '''about:config''' in the URL bar and hit Enter.
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''browser.tabs.insertRelatedAfterCurrent'''
    Double-click that preference to change the value to '''''false'''''

  • How do I get a link within a PDF to open a new tab in a web browser?

    How do I get a link within a PDF to open a new tab in a web browser? Previous forums (for earlier versions of InDesign and Acrobat) mention something about JavaScript, but I'm using InDesign CC and Adobe Acrobat Pro CC
    Thanks.

    When you're looking at the PDF that's on your site, is it opened in the browser or directly i Acrobat/Reader? If in the borwser, do you know if it's being viewed in the browser's default PDF viewer or Acrobat/Reader? It probably won't work in non-Adobe PDF viewers.
    Are you saying that when you click the link that two new browser tabs are opened with the same URL, instead of just one as you'd expect, or something else?

  • Clicking on a link to open a new page or tab gives me a blank page.

    If I click on a link to open a new page or a new tab, the page that opens is always blank and no address is in the address bar. Also, occasionally, my refresh button is "grayed" out so I can't hit that either. I think this is some sort of security setting blocking it. Can anyone help.

    Thanks Jason, I had the same problem and did exactly the steps above. Problem solved! You rock! :)

  • Firefox is set to open a new page when a link is selected, however it opens underneath/behind

    Firefox is set to open a new page when a link is selected, however it opens underneath/behind the page containing the link. In other words I can't see the new page because it is beneath the one I'm looking at.
    75% of the time this happens, 25% of the time it works as it should.

    Do you mean that it is opening links in a new window? If you would rather have a new tab instead, you can set that in Options > Tabs. Some links are set up so that they will open in a new tab or window. I know of no way to make those open in the same tab, short of changing the code on the page.

  • When i open a new tab, rather than the curser flashing in the url space it opens a new search page. how do i get the new tab to open at the url?

    when i open a new tab, rather than the curser flashing in the url window it opens a new search page. a new tab used to open at the url - how do i get it to do so again?

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • When i click on a link on a website it opens a new non working white page on (MAC) when i know the link works

    when i click on a link on a website it opens a new non working white page on (MAC) when i know the link works

    It sounds like your computer may be infected with some sort of a virus / Malware.
    I suggest the following resources:
    [[Is my Firefox problem a result of malware |Is my Firefox problem a Result of Malware]] is a Mozilla Support article with some good tips on avoiding and fighting malware.
    To double check your system is clean, do the following (Not official Mozilla advice, just good practice from personal experience)
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]
    Download and Run TDSSKiller [http://support.kaspersky.com/faq/?qid=208283363 http://support.kaspersky.com/faq/?qid=208283363]
    Download and Install Microsoft Security Essentials [http://windows.microsoft.com/en-US/windows/products/security-essentials http://windows.microsoft.com/en-US/windows/products/security-essentials] (not an official endorsement, but I personally recommend MSE as an awesome permanent anti-virus)
    Double check for all Windows Updates.
    Also, I noticed you have the coupon printer installed. I would go to Start, Control Panel, then programs and features and uninstall the coupon Printer from inside there. It can cause some problems with Firefox.
    If you are still having problems with Malware after that, I would recommend either [http://www.bleepingcomputer.com/virus-removal/ http://www.bleepingcomputer.com/virus-removal/], or having your computer cleaned by a professional.

  • How to open a new page from a Spry Table click, with element info?

    Hello, Spry experts!
    This is probably simple, but I've searched for hours and can't find what I need. I'm using Dreamweaver CS4 and Spry 1.6.1 to create a simple Spry Table from an XML data set using PHP as my back end.  I've used Dreamweaver's Insert->Spry->Spry Data Set to create everything, and the table is working fine.  Colors, clicks, sorts, etc., are all working correctly as expected.
    What I want is to be able to add a behavior such that when a table row is clicked, I can open a new page.  Moreover, I want to pass a parameter from the table to the new page, like http://www.mydomain.com/newpage.php?aid=12345 or whatever.
    So, for example, my table has two columns, "a_id" and "a_name", and my repeat region looks like this:
    <div spry:region="xml_assignments">
    <table width="500">
    <tr>
    <th spry:sort="a_id" class="spry_header">ID</th>
    <th spry:sort="a_name" class="spry_header">Assignment</th>
    </tr>
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    <td>{a_id}</td>
    <td>{a_name}</td>
    </tr>
    </table>
    </div>
    What I want is to be able to open an entirely new URL, passing the value of the {a_id} in the selected row as a parameter to the new URL, as in something like:  http://www.mydomain.com/newpage.php?aid={a_id}
    So my questions are: 
    1. How best to apply the action to the table?  Add an onclick to the tr tag?  Something else?
    2. How to extract the {a_id} value from the current row and pass it as a parameter to the action?
    Or maybe just take another approach entirely?
    I know that I can make the actual text in the table cells hyperlinks, and use them to link to the new page, which is fine.  The desire here is just to make it so that the user can click "anywhere" on the table row (as they can currently do with the spry:select behavior) and have the link kick off, whether they actually click on the linked text or somewhere in the row where there is no text.
    I'm sure this is obvious and simple, but I'm new to this level of Spry detail, and my brain is fried from hunting.  Any guidance will be gratefully appreciated!
    Glen Barney

    I found the answer myself, after posting this, of course!
    I changed:
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select">
    to
    <tr spry:repeat="xml_assignments" spry:setrow="xml_assignments" spry:odd="spry_odd" spry:even="spry_even" spry:hover="spry_hover" spry:select="spry_select" onclick="window.location.href='./newpage.php?aid={a_id}';">
    Basically just added the onclick parameter...
    And it all just worked!

  • Firefox opens a new page

    When I click on the link mentioned (not every time) Firefox opens a new page (not a tab) that is blank from http://analics.google.come. When I view source it is a frameset with Display the only item.
    == URL of affected sites ==
    http://foxnews.com/videos

    http://results.google-analytics.com/ is the correct url for the new page.

  • Menu bar button hyperlink to open a new page?

    I want to know if there is a way to add a hyperlink to a Menu bar button to open a new page showing a pdf file?

    To open url on button click, you can use the following example, that I used in one of my cases...
    Z P/L analysis
        ls_button-text     = 'P/L analysis monitor'.
        ls_button-tooltip = 'P/L analysis monitor'.
        lv_string1 = 'javascript:window.open( "'.
        lv_string2 = '" );'.
        CONCATENATE lv_string1
        lv_url2
        lv_object_id
        lv_string2
        INTO lv_string3.
        ls_button-on_client_click = lv_string3.
        ls_button-page_id  = me->component_id.
        ls_button-enabled  = abap_true.
        APPEND ls_button TO rt_buttons.
        CLEAR ls_button.
    Comments:
    - lv_string3 represents the URL
    - lv_url2 contains the url of bsp component, which you can build manualy or read from any table with select single statement
    - lv_object_id represents the id of opportunity which you can read from BOL or with one of crm_order_read function modules
    Regards.

  • Open a new page from a button of table view

    Hello,
    I search how to open a new page when i click on a button of a table view. I already tried to use navigate connector but i have an error when I compiled it (flash doesn't support). Do you know a workaround or tips ?
    Thanks,

    Hi Aurelien,
    Why don't you try creating a pop up iView on clicking the button on your table view.
    You can have a look at this link for understanding how a pop up iView works:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a88c4b3c-0a01-0010-afa4-a6eeb859d8d2
    You can also see page 50 of this doc:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe
    Bye
    Ankur
    Do reward points if it helps!!

Maybe you are looking for

  • My CSS doesn't work...

    This is in the external CSS-file;

  • Lightroom not reading tiff files from photoshop

    It was working ok and then LR 3 stop bringing in the images that I sent to PS (CS5) to edit..it does not bring them into my collection..help!

  • Outlook notification appears before email arrives in inbox

    issue we have with a couple of folks,  outlook notification appears before email arrives in inbox.  any idea why this happens? if they click on the inbox, then click on another folder, then click back on the inbox, they email shows up.  users are get

  • Drop unused column in compressed table

    Good day for all. I have partitioned compressed table under 10.2.0.4 database. I need to remove column, and did it according metalink note 429898.1, but then i execute command alter table .... drop unused columns, i got error ORA-39726 (unsupported a

  • How to view system variables

    hie im using oracle 10g and want to view and edit system variables on windows 2003 server that affect query performance. can someone help me pliz