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.

Similar Messages

  • 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.

  • How can I open a new browser window!!!  Very Challenging!!!

    I have a form (name=MAIN) with a submit button (name=Button A). Button A opens a new browser window (name=SEARCH), via an HTML form target tag (<FORM TARGET=A>). Window SEARCH has multiple submit buttons (10-15). Each button has a different action which is handled by a servlet (form name and button name are passed to a servlet as a hidden field in the form to determine the action), which is setup to be an action handler. When a button in the SEARCH window is clicked the results are retrieved from an Oracle database and should be displayed in the text fields in window MAIN.
    For example, some results may be displayed in window SEARCH (_self) and and other results may be required to be sent to window MAIN depending on the button clicked.
    How can I setup window SEARCH so each button can have a different target window (some may be window MAIN or other windows)? Using a form tag for each button doesn't give desirable results. Is there a way to do this with JSP or some form of Java code?
    A form tag can only have one target. Basically I have one form with multiple submit buttons. How can I get it to send each submit buttons results to a specific window?
    Thanks.

    <!-- try this -->
    <script language="JavaScript1.2">
    function mysubmit(mytarget){
    document.myform.target=mytarget;
    document.myform.submit();
    function validation(myform){
    //validation stuff
    return [true | false];
    </script>
    <form target='none' name='myform' action='myaction.jsp' method='post' [onsubmit='return validation(this)']>
    <input type=button name='submit1' value='submit1' onclick='mysubmit("target1")'>
    <input type=button name='submit2' value='submit2' onclick='mysubmit("target2")'>
    <input type=button name='submit3' value='submit3' onclick='mysubmit("target3")'>
    <input type=button name='submit4' value='submit4' onclick='mysubmit("target4")'>
    </form>

  • 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!

  • How can I open the Wndows Browse window from forms..

    I am using forms 5.0 and at run time I want to open the
    MSWINDOWS "BROWSE" window.Can any body help me?.

    I found this example in a book, which is useful for retrieving an
    image file from a local drive and inserting it into a table.
    I hope you find this helpful.
    DECLARE
         v_dirname          VARCHAR2(255);
         v_filename          VARCHAR2(255);
    BEGIN
         v_dirname := 'C:\';
         v_filename := get_file_name(v_dirname, NULL,
              'Bitmap file (*.bmp)|*.bmp|'                    ||
              'JPEG file (*.jpg)|*.jpg|'                         );
         IF v_filename IS NOT NULL THEN
              read_image_file(v_filename, 'ANY', 'av_data_image.blob_data');
         END IF;
    END;

  • 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?

  • 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.

  • How do i open a new browser window(IE or Netscape)?

    I need to open a new browser window to show a web page returned by a PHP aplication.
    If i use an editorpane the returned page is shown unformatted.
    PLEASE HELP!
    Rui

    or to open a window using a hyperlink, u can try this:
    Link Name
    This will open a window and send then send u to the page you want for processing.

  • 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

  • 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>

  • Open a new browser window from applet

    Anybody know how to open a new Netscape window by pressing a button in an applet? Which class handles it?
    Thanks a lot.
    wz

    http://forum.java.sun.com/thread.jsp?forum=54&thread=106906
    http://forum.java.sun.com/thread.jsp?forum=54&thread=272870
    http://forum.java.sun.com/thread.jsp?forum=54&thread=272829

  • How to open a new browser window from a link on the navigation bar

    Hi,
    I entered a URL in the 'URL Target' field for the Navigation Bar Entry. As expected when the I clicked on the link in the Navigation Bar my browser refreshed with the target URL.
    I want to be able to actually open a new window rather than refresh my current window. The help text says, and I quote ...
    "In the link generated for this icon include the following onClick javascript. Use of the onclick javascript could popup a help page in a new window (see example 1).
    Example 1:
    window.open('US/asfhhome.htm','Help','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');return false
    Set the Icon Target attribute to # if you are using OnClick JavaScript. Set the Image Alt Text attribute to the text the user will see to click on."
    So I created similar Javascript as to the example and placed in the 'OnClick Javascript' field, and placed a '#' in the 'URL Target' field.
    When I run it doesn't work, the '#' is picked up and the Javascript is ignored. Can somebody please tell me what I'm doing wrong.
    Thanks

    I had the same problem. I finally ended up just using the standard popupURL javascript. In the URL Target I have:
    javascript:popupURL('<link>')
    This opens a new window but since it is for popups the menus are missing. You may want to write your own javascript function to open the new window with your own settings.
    Search the forums for popupURL for more ideas.
    javascript:popupURL()
    --Jeff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Opening a new browser window from a JSP

    Hi,
    I have 2 buttons on my JSP. When the user clicks on them, they produce 2 reports. I would like to produce these results on a different browser window. Can anyone please tell me how to open a new window for the results?
    Thank you in advance.

    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>

  • How can I execute an IE browser window from within my java application?

    I am programming a java application that requires me to execute a browser application and point to a specific web site. How can I do this? I cannot seem to find any examples on the web.

    Hi Heals,
    This forum is for discussing Measurement Studio for Visual Basic and is not really a good place to ask general purpose Java questions. I suggest searching one of the comp.lang.java.* newsgroups at http://groups.google.com/.
    Off the top of my head, though, I would say take a look at the Runtime.exec method.
    - Elton

  • Openning a new browser window from a link in a portlet

    Hi,
    I have a link in a portlet which is to display iits content in a new window. But no matter what i try the address in the link is prefixed with the application URL making it useless.
    IE if my link i want to open is www.google.com when i cllick on the link in the new bowser I get http://localhost:7001/wepApp/www.google.com
    Does anyone know how to stop the http://localhost:7001/wepApp/ being added, before i throw myself out of the window.
    Thanks Chris

    Hi Chris
    I have same scenario on my side. I have Navigations Link Portlet that shows all our Corporate Web Sites links. This is stored in CMS System with one type. This is Pageflow based portlet. In Pageflow I get all Content for this links and store in request object. Then in JSP retrieve from request object and show them as links. Here is the jsp code snippet. Values are like http://www.msn.com, http://www.yahoo.com etc. I do have portlet for this pageflow that uses this jsp code snippet. So its from a Portlet.
    <lt;%
         Node linksNode = (Node) request.getAttribute("NEWS_LINKS_NODE");     
    %>gt;
    <lt;netui:html>gt;
         <lt;netui:form action="begin" enctype="multipart/form-data">gt;
    <lt;%
         if (linksNode != null && linksNode.hasChildren()) {
    %>gt;
              <lt;table>gt;
                   <lt;tr>gt;<lt;td>gt;<lt;b>gt;Links:<lt;/b>gt;<lt;/td>gt;<lt;/tr>gt;     
                   <lt;utility:forEachInArray array="<lt;%= linksNode.getChildren()%>gt;" id="eachContentItem" type="com.bea.content.Node">gt;
                        <lt;tr>gt;
                             <lt;td>gt;
                                  <lt;a href="<lt;cm:getProperty node="<lt;%=eachContentItem%>gt;" name="urlLink"/>gt;" target="_blank">gt;     
                                       <lt;cm:getProperty node="<lt;%=eachContentItem%>gt;" name="name"/>gt;
                                  <lt;/a>gt;
                             <lt;/td>gt;
                        <lt;/tr>gt;     
                   <lt;/utility:forEachInArray>gt;
              <lt;/table>gt;
    <lt;%
    %>gt;HTH
    Ravi Jegga

Maybe you are looking for

  • Can't open PowerTeacher in OSX Mavericks

    I recently bought a new MacBook Pro and I've been trying to install the PowerTeacher Gradebook Application for the past week. The newest version of Java is installed and enabled in my preferences. It will not launch directly from the site or open aft

  • Is there a way to make Time Capsule back-up its contents to an external hdd connected to it's usb port.

         I wanted to know if there is anyway i could automatically backup my time capsule to an external drive connected to it's usb port. I tried using automator to make it copy newly added files into the external but it didn't seem to work as i had hop

  • How do I create a DVD I can watch on TV from an Iphone5 Video

    My operating system is OSX Mavericks 10.9.4.  After is download IPHONE 5 videos.  How do I make a DVD that can be watched on a regular TV.  I might add that I'm somewhat a novice.

  • Cant delete something? Help!

    Basically I tried installing an app, but something happened, I don't really know, and now, I can't delete it. If press and hold it, there wont appear any X's on the installing app, and I cant think of anything else that would allow me to delete it. T

  • Splitted Data to be Set in the respective list

    Hi, I want to set the respective spilted values in the respective List, but since the length is coming as 2 only in the firstList both the splitted values are populated. String test = "900000005146$@$AR@L-";         List<String> firstList = new Array