New browser window from uix

How can I open a new browser window from an event handler in UIX?
Thanks in advance,
Martmn Patrici

I just tried your suggestion. Unfortunately, it did not work. Here's the UIX code I used:
<tableSelection>
<singleSelection model="${bindings.MPOOrdersView1Iterator}" text="Select">
<primaryClientAction>
<firePartialAction targets="_uixState MplistsView11" source="MPOOrdersView10" event="select"/>
</primaryClientAction>
<contents>
<submitButton formName="mlrhomeform" text="Print Lists" event="print" />
<submitButton text="View Merge Reports" event="mergerpts" formName="mlrhomeform" targetFrame="_blank"/>
</contents>
</singleSelection>
</tableSelection>
The only difference from the original code is the addition of the targetFrame="_blank" in the submitButton.
It had no effect. My redirected page showed up in the same browser window. This left me with an expired page when I press the Back button on the browser.
My assumption is the response.sendRedirect() call wipes out the targetFrame setting.
Does anyone know how the browser (Internet Explorer in this case) actually gets notified to open a new window? There's got to be something that the targetFrame="_blank" sets up to cause it.
I know that Netscape supports a "Window-target:" header, but unfortunately IE doesn't. Is there some "standard" header that I can put in a response.addHeader() call that would tell all browsers to open a new window?
Of course, a UIX solution would be preferrable!
Any other ideas?

Similar Messages

  • How can I open a new browser window from UIX?

    I need to open a new browser window from an event handler. How that can be done? HELP!
    Thanks!
    Martin Patrici

    HTML doesn't really let you do this on the server side; the client is in charge
    of creating new windows, not the server.
    If you know that clicking a certain link/button, etc. will always raise a new window,
    then you should use Javascript or "targetFrame" accordingly.
    If the decision will only be made on the server side, then you could reload the current
    window, only this time use an "onLoad" on the <body> to raise a window.

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • Open new browser window from Hyperlink in BIP PDF output report?

    Hello,
    Is there a way to open a new browser window from Hyperlink in PDF report?
    Thank you all in advance.
    MT

    Dear Friend,
    It is not supported for PDF Report. But below links helps you, to accombish this task in PDF report.
    [url http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html]http://oracleapps4u.blogspot.com/2011/03/open-hyperlink-in-new-browser-window.html
    Thanks & Regards
    Ahamed Rafeeque Cherkala

  • Open new browser window from a JApplet

    Hi,
    I want to open a new browser window from a JApplet.My first thought was to use the Live Connect technology but it worked only with simple applets not with JApplets.Then i tried it by getting the Applet context (getAppletContext() method) but it still didn't work with JApplet...(it worked with Applet).I believe it has something to do with the applet security but i haven't yet figured it out.
    For example when i call the getAppletContext() method from a JApplet i get an java.security.AccessControlException ... .Thanks

    I must correct myself now :).
    The getAppletContext() method does work with JApplets too.Still , i have problems with the Live connection alternative.It seems that it by importing the netscape.javascript package i get the security eror that i mention above...

  • How to open a new browser window from a JSP page?

    Hi,
    I am picking up records from the database and displaying each record in a seperate text area field using the JSP code. I should be able to display the content ( available in the text area) in a seperate window if the user clicks on one icon.
    Is it possible to open a new browser window using JSP? If yes, how can I write information on the new browser window?
    Thanks in advance.

    Is it possible to open a new browser window using JSP?a JSP page is also an HTML page, this is client side stuff, you can do it with JavaScript.

  • New browser window from CRM Web UI causes problems

    Hi Experts,
    We have several links to internal web sites that CRM users can access from the web UI.  Problem is, whenever one of these links are selected, the user looses whatever it was they were doing in CRM and the main window displays the following message:
    The object you have selected is starting in a new browser window. You can continue working normally in the current application. However, you may have to navigate back to the page you were working on.
    Anyway to prevent this from happening?   Would very much appreciate any advice.
    Thanks,
    Stephen Brewer

    Hello Brewer,
    If your requirement is to open some URL say google.com etc in a now window, then there are only 2 ways
    1) Use Transaction Launcher
    2) Use PopUp Window.
    1) If you use transaction launcher, and created the link in your direct link group then on click of the link, the URL will open in new window but you cant avaoid the message that you get in the current window. Also, if users POPUP Blocker is ON, user will never come to know why the new window has not launch.
    2) This is very simple and straight forward approch for opening URL. However, POPUP windows in WEB UI are modal windows, so say on click on a button on Account Overview Screen, i open google.com in a popup then unless i close this popup , i can not work on the account overview screen . However, you can see the account overview screen as it is and you can resume back when the popup is closed. Also you can define the even handler on close event of pop up so you can pass the data to & fro between the webclient view and the pop up.
    to open some extrenal URL in a PopUp , You will need to create a blank view and attach it to a window. In .htm file of the view, you can use tag IFRAME and call your external URL here.
    Hope its helpful.
    Thanks & Rregards
    Prasad
    PS : the popup blocked problem will still be there however, it flashes a message like pop up blocker is ON in case of using popup window

  • New browser window from single movie frame?

    Sorry but I am a total newbie>
    I have a 4 frame movie imported into one layer and want to
    specify a different URL to be opened in a separate window for each
    frame. So I have made each frame a keyframe and added from the
    behaviors a geturl event for each frame. When this is published it
    loops the movie and opens a new browser window for every frame for
    every loop, resulting in dozens of browser windows. How can I make
    this a mouse clickable event so only when I click on a frame will
    the new browser window launch?
    I am trying to use onrelease, but I am not sure how this
    should work as I can't find a good example.

    1) you can't 'click on a frame' in the SWF file when it's
    running, you must click on a 'button' or 'movieclip' instance the
    you construct ON a particular frame, or all in the same frame with
    different buttons on theStage.
    2) you need to add a 'stop()' action to your actions layer to
    stop the SWF from 'playing' which is why it continues to open more
    windows, MovieClip timelines play and loop by default.
    3) more information that you will ever need is located in the
    Flash Help files(F1) along with many tutorials to learn the basic
    concepts, open them and go to 'Getting Started in Flash' to learn
    some basics.

  • Opening a new browser window from flash

    Does anyone know of a method fo opening a link in a new
    window in firefox from within flash that isn't blocked by the popup
    blocker. It seems like the security in FF 2.0.0.6 (I'm on 2.0.0.11)
    has been tightened to prevent any _blank or window.open calls from
    flash getting through. I've tried the standard getURL, fscommand
    and ExternalInterface call to a javascript window.open method.
    Nothing now works.
    I understand the need for the popup blockers, but this is a
    legitimate popup only invoked on user interaction (click) - the
    same window.open call in an onClick event outside of flash works
    fine and I guess it is blocked from within flash because there is
    no way of knowing if the call is invoked from user interaction or
    automatically - but seems a shame.
    So any other way of getting a new browser window to open from
    within flash in firefox?

    Use target="_blank" in your form declaration.<FORM METHOD=POST ACTION="someAction" TARGET="_blank">The _blank keyword tells the browser to load the results in a new window.
    If you need more control over your window (size, address bar, etc.) you'll need to use javascript.<SCRIPT>
    function submitForm(windowName){
       newWin = window.open("",windowName, "menubar=no,resizable=no,...");
       document.myForm.target = windowName;
       document.myForm.submit();
    </SCRIPT>
    <FORM NAME="myForm" METHOD=POST ACTION="some.jsp" TARGET="">
    <INPUT TYPE=BUTTON VALUE="Submit" onclick="submitForm();">
    </FORM>

  • New Browser Window from Hyperlinks on PDF created in In Design

    I am creating PDF documents using In Design CS3.  The PDFs have hyperlinks to other PDFs as well as hyperlinks to webpages. The finalized PDF is being accessed through our website as a link on the webpage. The PDF is opening in a new browser window/tab and the hyperlinks are working great.  My problem is this: How do I get it so that the hyperlinks on the PDF open to a new browser window as well.  Currently, when I click a link, it changes the current browser window that the PDF is in.  I want to set this so that anyone, from any computer will have it so that the link opens a new window/tab.

    In Adobe Acrobat (the application, not the .pdf reader) use the Link Tool to edit the hyperlinked text object. Remove the “Open a web link” action assigned by default to handle the hyperlinked text when clicked. Assign a new action to the linked text that will open the hyperlink in a new window.
    Note: The links have to be established each time you create a PDF – they do not carry over from In Design or any other software.
    1.     Access the Link tool (Tools > Advanced Editing > Link Tool)
    2.     Right click on the hyperlinked text and select Properties
    3.     In the Link Properties dialog box click on the Actions tab
    4.     In the middle of the Actions panel in the Actions section click on the Open a web link action listed there to select it.
    5.     Click the Delete button located just below that section in the lower right corner. This removes the action from the list and the Actions section should now be empty.
    6.     In the Add an Action section right above the Actions section click on the Select Action drop down menu and select the Run a JavaScript action from the list.
    7.     Click the Add… button.
    8.     In the JavaScript Editor that opens up, click your cursor in the Create and Edit JavaScripts area, like you would in a word processor to begin typing, and type the following line:
    app.launchURL("http://www.MySampleURL.com/someFolder/somePage.html", true);
    9.     Change the hyperlink text between the quotation marks to your desired URL.
    Ex: app.launchURL("http://www.cnn.com", true);
    Caution:
    1.     The code is case sensitive so make sure you typed app.launchURL NOT app.launchurl or some other case combination.
    2.     Make sure that you have quotation marks around your hyperlink URL.
    3.     Make sure there is a semicolon at the end of the line of code you just typed.
    4.     Make sure that the quotation marks are straight up and down – not on an angle.
    10. Click OK to close the JavaScript Editor dialog box.
    11. Click OK to close the Link Properties dialog box.
    12. Save the .pdf and test your .pdf hyperlink by opening the .pdf document in a browser, click the link and check to see that it opens in a new browser window.

  • Opening of an ADF applcn in a new browser window from another ADF applcn.

    The requirement is in the form of a usecase below, can you please let us know how could we resolve this.
    Let us consider we have two ADF applications A and B. Once ADF application A is rendered, in one of the pages of Application A there is a link which takes us to Application B. We want to open the ADF application B in a new browser window.
    There is one more restriction here, the first time the link in Application A is clicked it should bring up the Appliciation B in a new window say W2 , later on if the person clicks multiple links from Application A it should refresh the exisiting open window W2 with the Application B. i.e we do not want multiple windows to come up for a single link.
    I do see the commandlink has a usewindow=true ,this is the functionality we want. basically the first time the link is clicked a new window should pop up, later on every click of the command link we want to refresh the same open window which had come up the first time the command link was clicked.
    Edited by: user504058 on Nov 9, 2010 6:05 AM

    I did try using the Golink with targetFrame with all the values "_blank", "_parent", "_self" , "_top". with targetFrame value set as _blank it brings up multiple windows.
    Let me be more clearer, I do have application A in browser window say W1 and when i click a link from Application A present in browser window W1 the Application B should open up in new browser Window W2. And further on simaltaneous clicks on the link in Application1 should only refresh the Window2 with Application B.
    i.e, at any given time i want only two windows to be present i.e, W1 and W2.

  • Can I open a new browser window from a movie clickbox

    Hi,
    This is a last question from me, I hope. (I'm within a month
    of delivery, and my boss keeps saying 'a user's asked for this or
    that', but I'm meeting many of their requests with technical
    obstacles. Oh dear.)
    Here's the question: From a caption clickbox within a movie,
    can I link to a new browser window? (I have a Help button at the
    top of my movie and a user tester rightly pointed out that it
    breaks them out of their movie and they can't get back. So my only
    solution is to open it in a new browser window, but as I'm within
    the movie, I need to link to the new window from a caption or
    button, not an html page.)
    If a Javascript command would work, could I get the exact
    code to put in the box? I haven't been able to get any
    Javascripting to work through Captivate.
    If nothing works out, I'll have to scrub the Help button from
    every page, but I'd rather be sure before I do it.
    Thanks in advance,
    Kim

    Hi and thanks for both of the replies.
    Phew! I love it when there's a way out of my problem! Is it
    my imagination or are the options: Current, New, Parent and Top not
    described in the Captivate help? What is the Parent? I would have
    thought a window would have spawned a child. And I guess Top is a
    new window that's always on top? Is it described in the help
    anywhere beside the page I found that doesn't describe it? (I guess
    so far, I've been blindly and successfully using Current.)
    I assume I can't remove the toolbars on my new windw without
    going through an extra link? If that's the case, I can live with
    that. I wouldn't want to make the user click two links just for a
    help page.
    Thanks again,
    Kim
    PS. No wonder my Javascript never works if I can't even
    notice the options!

  • New browser window from jspx site

    I use the following commandMenuItem
    <af:commandMenuItem text="#{res['pob.menu.help']}"
    icon="/images/help.gif"
    action="GlobalHelp"
    immediate="true"/>
    GlobalHelp is /app/Help.pdf
    and i want to open it in a new browser window.
    I test useWindow, windowHeight, windowWidth but it don't help me.
    Any help is appreciated.

    Hi, RadoK
    How can we use <af:goButton> instead of <af:goMenuItem> or <af:goLink> to achieve the same? I tried use EL in the destination for <af:goButton> but it doesn't work.
    What I like to do is
    1. opening a page in a new browse window (not like those modal window produced by <af:commandbutton>)
    2. pass some request parameters dynamically to the page to be opened.
    3. the page is invoked from a command button.
    I tried <af:goLink> and it works OK for destination with EL but It is not a button. My command must be shown as a button as it is included in a group of other buttons.
    I tried capture the image of a button with desired text and nested this as <af:objectImage> in <af:goLink>. However, when I run the application, the text from the image doesn't look alike that from a goButton or commandButton.
    Any suggestion?

  • Conditionally opening a new browser window from a JSP page

    When the user clicks on a button in my JSP page, I'd like to launch a new browser and display certain things in that browser window while leaving the original browser window open. The new browser should only be displayed if certain conditions are met.
    My thought was to invoke a javascript method in 'onLoad' which would determine if the new window needs to be launched.
    This is kinda what my page looks like:
    <jsp:root version="1.2" ................>
        <jsp:directive.page import="java.util.*, com.test.Configuration" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
         <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow();">     
         </ui:body>
       </f:view>
       <script type="text/javascript">
            function launchWindow(){
             if (Configuration.openWindow()) {
              window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
        </script>     
    </jsp:root>
    My problem is that the call to "Configuration.openWindow()" does not resolve correctly. If I remove that call and simply make a call to "window.open()" all works. But once I put the condition in, nothing happens. I do not see an exception in my browser window but a new browser window does not open.
    Is my syntax correct. Can I make a call to the static method 'openWindow()' in my class 'Configuration.java'.
    I posted this same query on the JSF forum but received now replies. My question is more suited to the JSP forum and hence I'm posting this question here.
    thanks,
    tsc

    I have made some changes so that I do not directly access the 'Configuration' class in my javascript.
    I have a hidden field on my form and when the user clicks the button, in my back bean, I set a value for the hidden field. In the javascript function 'launchWindow()' I check if a value has been set for the hidden field and if yes, I open a new window.
    <ui:body binding="#{Page1.body1}" id="body1" onLoad="launchWindow(document.forms[0]);">
    <h:inputText id="hiddenField" value="#{formBean.hiddenValue}" />
    <script type="text/javascript">
            function launchWindow(form){
                alert("in lw");
                var test = form["form1:hiddenField"].value;
                alert("got test");
                if (test !=  "")
                    window.open("hello.jsp", "newWindow", 'toolbar,width=400,height=400');            
                alert ("done test");
    </script>When my page is first loaded, the launchWindow() is called and all the alerts popup as expected.
    When I click on the button (the back bean sets the value on the hidden field), my page is reloaded but this time its blank.
    Any ideas as to why this maybe the case?
    thanks,
    tsc

  • Open new browser window from an Applet

    I have an applet that needs to initiate a new browser window to open and go to a specified URL. Can anyone help me with this?? Thanks in advance.

    http://developer.java.sun.com/developer/qow/archive/48/index.html

Maybe you are looking for

  • Goods receipt without PO reference

    There is one case.... Like My client wants to do some cash purchasing... means GR without PO. but he need that there should be some restriction on the amount like in this kind of cash purchasing they should be allowed only Upto 5000 Rs for cash not m

  • [JS, CS2] Find Text - Change Paragraph Style

    I have text supplied to me formated with <g>,< b>,<k> or <r> at the start of paragraphs, this represents different paragraph styles that need to be applied. <br /><br />I started a script below, but it comes up with an error at "app.findTextPreferenc

  • Library sorting

    Why can't you sort more than one column in the Library or is it possible?

  • EMP and DEPT sampledata query (SOLVED)

    I don't have access to create tables at work - just to run selects on existing tables. I've used the SQL below to use the 2 standard Oracle test dept and emp tables for testing, but - is it possible to use SQL to join the tables, or can the GET table

  • Macbook Air with no OSX (Mid 2011) ... cannot install Lion nor Snow Leopard

    I have a Macbook Air with no OSX (Mid 2011) ... and I cannot install Lion nor Snow Leopard. I purchased this Macbook Air 13" and found that the OS had been wiped off. Since then I've been able to get the Recovery Disk Assistant to get me into the Rec