Open a browser window at client side

Hi All,
I have to open up a new browser window at the client side when a user clicks on a button.
What are the possible ways to do this, and what is the recommended way of doing this taking into consideration the browser dependencies.
I tried with giving a destination as http;//google.com to <af:goLink > with _blank  targetFrame.
Can you please proved some links that can help me in doing the best possible way.
Regards,
ND

Hi,
it depends on what the use case is: Do you want to open a page of the application in a separate window or do you want to open a browser window that does not belong to the application itself ? Options you have are
i) goLink with targetFrame = _blank (as you guessed)
ii) issue JavaScript from Java that invokes window.open on the client (works with all browsers)
iii) Use the dialog framework navigating with dialog:navigation-case and the command button setting to useWindow = true (Use it to open pages of the application in a dialog)
iv) Use af:popup for dialogs that open as part of a page. (Use to show additonal information like list of values)
Frank

Similar Messages

  • Open a browser window in the same window

    Hello everybody, I have a question:
    I want to open a browser window from an applet. Not in a new window but in the same window.
    I already know about the
    getAppletContext().showDocument(new URL("http://java.sun.com"), "_blank");
    applet-instruction but it opens the html page in a new window. I have already proved changing the "_blank" parameter for "_self" or "_parent" but stills the same: it's opened in a new window. Does anybody could help me please?
    Thanks

    public void showDocument(URL url)
    Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.
    Parameters:
    url - an absolute URL giving the location of the document.
    Applet must be running in a browser for this to work. More information at this website
    http://java.sun.com/j2se/1.4.1/docs/api/

  • Error message after update "Safari cannot open a browser window and may be

    My daughter just did an update and got the following error message: "Safari cannot open a browser window and may be missing important resources. Try installing Safari again.
    Any thoughts or tips as to what happened?

    Just a few pieces of clarifying information... This is Safari on OS X you're talking about, right? Also, what update did your daughter install? Have you tried reinstalling Safari (you can download it from Apple's site)?

  • Opening a browser window

    My issue is as follows:
    Our application consists of images and forms. We display the image in an image viewer, on left half of the screen and the form on the right half.
    When we display the image in a browser using web.show_document the image gets displayed fine but the focus remains on the newly opened browser window. The user has to click into the form to start entering information from the image into the form, losing valuable time in a high volume processing environment.
    Is there a way other than using web.show_document (foreign functions/Java/any other technology) that will allow me to open a browser window from the form and then send the control back to the form?
    Thanks
    SP

    Hi,
    check this one
    WEB.SHOW_DOCUMENT
    Frank

  • Opening new browser window

    Hi,
    this piece of code use to work for opening a new browser, but now it has problem in opening browser window. There is no exception thrown, can anyone has suggestion whats wrong in this. I am using JRE1.3. I have a feeling that something is conflicting with IE (I tried on 5.0,5.5,6.0)
    thanks
    Syed
    try
    URL url = new URL(urlString);
    applet.getAppletContext().showDocument(url, "_blank");
    } // End of Try
    catch(MalformedURLException e)
    logs("Exception in opening new browser window: " + e);
    } // End of Catch

    Same here.
    Worked fine under IE5.x to IE6, JRE 1.3.x to 1.4. OS used were W2k and WinXP, no prob here.
    Now on some PCs the windows don't pop up anymore. No exception, no indicator of what's going wrong.
    Any hints?
    J�rgen

  • Any way to open new browser window without using image maps?

    Is there any way to open new browser window without using image maps? My code works fine in Firefox, but not in IE. There are 2 problems in IE: 1st is that the thumbnail images move up within their own borders & 2nd that when you click on an image it does open up a new browser window, but also redirects to the index page (in this case it's just a placeholder index page - the new one I've called index_new.html for the time being).
    Here is the link:
    http://www.susieharperdesigns.com/gallery_beads.html
    Any help is greatly appreciated.

    Your missing a value on the HREF.  In your code you have this:
    <area shape="rect" coords="-24,-9,106,144" href=" " onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    and it should be this:
    <area shape="rect" coords="-24,-9,106,144" href="javascript:void()" onclick="MM_openBrWindow('gallery_bead1.html','','width=255,height=360')" />
    </map></div>
    If you fix the code on all your beads, it should work.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Reg: To open a Browse Window Using Form Builder

    Dear All,
    I am trying to open a browse window using form builder.I am using forms 10g.
    I have user the following code.
    Declare
    l_file_name Varchar2(383);
    Begin
    l_file_name := webutil_file.file_open_dialog( );
    If
      l_file_name Is Not Null
    Then
      If
        :images.Rowid Is Not Null
      Then
        create_record;
      End If;
      client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
    End If;
    End;I have attached the webutil.pll in attached library.
    It shows an error" WEBUTIL Object group not attached to this form".
    Can any one help me how to attach that object group.
    Thankx in advance.
    Cheers,
    Jai.

    write this in your 'Browse' Button's , when_button_pressed trigger
    DECLARE
      filename VARCHAR2(500);
    BEGIN
      filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
      :txtbx3:=filename;  -- Here you will assign to you form's field.
    END;Edited by: Tuts009 on May 10, 2010 5:00 AM

  • How i can open a browser windows using a button in jsf ?

    Hi
    Thank you for reading my post
    how i can open a browser windows using a button in jsf ?
    for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
    and before opening the window i need to set those two variables.
    can some one help me with a solution ?
    thank you

    Hi Legolas,
    Please refer to the answer provided by Chris in the EA forums.
    Cheers
    Giri

  • When I print from Gmail, I can't return to my e-mail and have to open another browser window. The back button become inactive.

    While using Gmail, when I print e-mail I can't return to my inbox or any other Gmail option. I am left "stuck" at the print window and have to open another browser window each time and go back into e-mail. Usually, I am still logged in after doing this, but sometimes I have to login to e-mail again. Thanks.

    How are you trying to change it ?
    You should be able to log out of an account by clicking on it at the top left of the store's pages on your computer's iTunes, or via the Store > Sign Out menu option (if you are using a PC and the drop-down menus aren't showing at the top of iTunes then control-B should get them to show). You can then sign in with your own account (the Store > Sign Out menu option should change to a Sign In option) - does that work ?

  • Safari 5.1 -- 'Open at Login' not opening a browser window?

    I have Safari set to open at login (right-click Safari in the Dock > Options > Open at Login). When I reach my desktop, the Safari icon in the Dock bounces and the spotlight lights up as expected, but Safari does not open a browser window -- I have to click the Safari icon or click File > New Window to see a window.
    I've used Open at Login with Firefox and Mail and have never experienced this issue; the application window always opens. I've also tried disabling Safari's extensions and resetting Safari's settings (Safari > Reset Safari) with no luck.
    I know I can probably trick Safari by adding a shortcut to my homepage to the Dock and have that open at login, but I would like to resolve this if I can. Any ideas?

    I found this discussion about three or four months ago. I was having the same problem with Safari not opening, along with my other login items.
    The tip posted by Linc on Oct 3, 2011 9:22 AM, resolved the issue.
    Thanks Linc!
    HOWEVER... Today, all of the sudden... Out of out of the blue... I have the same problem, again!?
    I tried removing, then re-adding, the URL file from the log in items, automatic open list.
    It did not work?
    Does anybody have any ideas/solutions regarding this issue? This is becoming VERY aggravating!

  • Opening a browser window with Java

    Is there a way I can open a Browser Window (with a specific html document) from Java? Thanks.

    Use Runtime.exec(cmd) with the following command:
    Under Windows 9x:
       command.com /C" start "urltofile.html"Under other Windows:
       cmd.exe /C [start] "urltofile.html"  (start is needed when url begins with 'http://")

  • Open a browser window from flash actionscript 2 in safari or firefox

    I am having a problem. I found the actionscript 2 code to open a browser window, but it is not working in Safari, or Firefox. I found an old action script 1 file version 5 for the flash player that works just fine, but I am using 8 and actionscript 2 so that doesn't work for me.
    Any body have any idea how I can do this?

    if you're testing locally, use:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l

  • Opening a Browser Window on event

    Upon a Hyperlink listener event I wish to open a browser window. Is there a system calll to do this? I would like to open the default browser, whether it is IE or Netscape. Any suggestions or hints?

    below works:
    import java.io.IOException;
    /** * A simple, static class to display a URL in the system browser.
    * * Under Unix, the system browser is hard-coded to be 'netscape'.
    * Netscape must be in your PATH for this to work. This has been
    * tested with the following platforms: AIX, HP-UX and Solaris. *
    * Under Windows, this will bring up the default browser under windows,
    * usually either Netscape or Microsoft IE. The default browser is * de
    termined by the OS. This has been tested under Windows 95/98/NT. * * Examp
    les: * BrowserControl.displayURL("http://www.javaworld.com") *
    BrowserControl.displayURL("file://c:\\docs\\index.html") *
    BrowserContorl.displayURL("file:///user/joe/index.html");
    * * Note - you must include the url type -- either "http://" or "file://". * */
    public class BrowserControl{
    // Used to identify the windows platform.     
    private static final String WIN_ID = "Windows";
    // The default system browser under windows.
    private static final String WIN_PATH = "rundll32";
    // The flag to display a url.     
    private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
    // The default browser under unix.     
    private static final String UNIX_PATH = "netscape";     
    // The flag to display a url.     
    private static final String UNIX_FLAG = "-remote openURL";     
    *     * Display a file in the system browser. If you want to display a     
    * file, you must include the absolute path name.     
    *     * @param url the file's url (the url must start with either "http://"     
    * or     * "file://").     */     
    public static void displayURL(String url)     {     
    boolean windows = isWindowsPlatform();     
    String cmd = null;          
    try {          
    if (windows) {     
    // cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;     
    Process p = Runtime.getRuntime().exec(cmd);     
    }               else {          
    // Under Unix, Netscape has to be running for the "-remote"     
    // command to work. So, we try sending the command and
    // check for an exit value. If the exit command is 0,
    // it worked, otherwise we need to start the browser.
    // cmd = 'netscape -remote openURL(http://www.javaworld.com)'
    cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";     
    Process p = Runtime.getRuntime().exec(cmd);     
    try {                    
    // wait for exit code -- if it's 0, command worked,          
    // otherwise we need to start the browser up.
    int exitCode = p.waitFor();               
    if (exitCode != 0) {               
    // Command failed, start up the browser     
    // cmd = 'netscape http://www.javaworld.com'     
    cmd = UNIX_PATH + " " + url;          
    p = Runtime.getRuntime().exec(cmd);     
    catch(InterruptedException x) {          
    System.err.println("Error bringing up browser, cmd='" + cmd + "'");     
    System.err.println("Caught: " + x);                    }
    }          }          catch(IOException x) {          
    // couldn't exec browser          
    System.err.println("Could not invoke browser, command=" + cmd);     
    System.err.println("Caught: " + x);          }     }
    /**     * Try to determine whether this application is running under Windows     
    * or some other platform by examing the "os.name" property.     *
    * @return true if this application is running under a Windows OS     */
    public static boolean isWindowsPlatform()     {     
    String os = System.getProperty("os.name");     
    if ( os != null && os.startsWith(WIN_ID))          
    return true;          else               
    return false;               }     
    /**     * Simple example.     */     
    public static void main(String[] args)     {
    BrowserControl.displayURL("http://www.javaworld.com");     }}

  • I have a problem, when i start the project i open the browser window and whenh i select a clip premiere stops working!!!

    i have a problem, when i start the project i open the browser window and whenh i select a clip premiere stops working!!!

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Opening modal browser windows

    I have a question concerning opening modal browser windows.
    The UIX framework provides a javascript function called "openWindow". E.g. the ui:dateField uses this function to open it's separate browser window.
    The good thing using this function is, that the opener browser window gets shadowed and isn't accessible anymore.
    Therefore I also want to use this function to open my own modal windows. The problem here is that any postback in the modal window enables the opener window again.
    Interesting point is, that the date picker for a ui:dateFields also performs postbacks but the opener window stays shadowed.
    How can I perform postbacks in my own modal window and keep the opener window disabled?
    How does it work when using the date picker?

    Christian -
    I can provide some background about how the modal date picker window deals with this issue - and I think that you can use the same technique...
    The UIX body component has a built-in unload handler that gets called when the page is unloaded - for example, when you post data in your modal window. The unload handler will check to see if the page is a modal child of its parent window - and if so, will re-enable the parent window (the assumption here is that once the page has been unloaded, the modal child will be hidden).
    The solution that UIX uses for the date picker window is to place the contents of the child window inside of a frame set. The actual contents of the window are embedded inside of a frame inside of the frame set. That way, when you navigate inside of the child window, the body's built-in unload handler is still called - but, it no longer enables the parent window, since the body is no longer a child of the parent window - but is a child of the frame set.
    I think that you can implement a similar solution by embedding your modal window contents inside of a UIX frameBorderLayout component.
    Andy

Maybe you are looking for

  • How can I reset the xy zero point to a different spot in my PDF? Possibly via a plug-in?

    I would like to reset my zero point to aid in measuring and aligning elements in PDFs. Indesign, Illustrator and Photoshop will let you do this but not Acrobat Pro. Any ideas? I also use Pitstop Pro but can't seem to find anything in there that can h

  • Error message when I try to stream iTunes over Airport Express

    When I try to stream iTunes over Airport Express, I get an error message: An unknown error (-15006) occurring while connecting to the remote speaker. This just started happening since I upgraded to iTunes 9. Is there a fix?

  • Script for closing opened files remotely.

    Hello guys. I am new to scripting hope my question will be understandable for you. What I'm trying to do is a script that would ask me the directory and name of a file (ex: e$\test\test1\test2.pdf) and then check on 50 servers if this file is opened,

  • Mountain Lion (Mail 6.0) Issue

    I just purchased and installed Mountain Lion.  If I go into Mail after quitting and re-opening it, I sometimes get this tiny screen glitch over the message (mostly when there is a link).  So I'm just assuming it's from Mountain Lion being buggy since

  • I purchased CS6 Design & Web Premium but there is nothing on my Order List?!

    I recently made a purchase just awhile ago, I got directed to 'My Order List' and could see my order there. But when I refreshed it they disappeared and now my order is missing. Could someone tell me just what is going on? I have check 'My Order' for