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

Similar Messages

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

  • 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

  • Is it possible to open a browser window from an applet?

    Hi,
    this might seem a simple beginners question to you, but to me it is more like a nightmare.
    Is it possible to have a link in an Applet that opens up a new browser
    window with a fixed address??
    If yes, can anybody tell me how? or where can I find documentation about it?
    Please help me.
    Thanks.
    dunja

    myApplet.getAppletContext().showDocument(URL url, String target);
    TARGET:
    "_self" Show in the window and frame that contain the applet.
    "_parent" Show in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
    "_top" Show in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
    "_blank" Show in a new, unnamed top-level window.
    name Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.

  • Opening new browser window from View Library links

    On some of the documentation pages, e.g. http://www.oracle.com/technology/documentation/ias.html , a new browser window is opened using target=new_win in the HTML code. This window will be re-used if the user goes back and clicks on another, similar link. It's better to use target=_blank for this purpose, because that would ensure that a new browser window is opened every time.

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Opening new browser window from image swaps

    Hi all, does anyone know if it is possible to set a swapped
    image to open a new browser window on a click command? Any help
    woul dbe much appreciated. thank you in advance. :)

    You would have to a) swap the image, and b) expose a
    previously hidden layer
    that superimposes the image with a transparent GIF on which
    the onClick
    behavior has been applied.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tldesignstudios" <[email protected]> wrote
    in message
    news:e7vfhm$1hf$[email protected]..
    > Hi all, does anyone know if it is possible to set a
    swapped image to open
    > a new browser window on a click command? Any help woul
    dbe much
    > appreciated. thank you in advance. :)

  • Opening new browser window from backing bean

    Is it possible to open new window from backing bean?
    Regards, Simy

    quite sure its not possibleIt is possible !! But a fifferent way of doint it!
    I assume this is what you want ! on click of a button you want to go to the backing bean and come back with the new page on a new window !!
    Do the following! On click of a button, call a javascript method which does the following
    window.open('/jsf/somepage.jsf',.....)In the constructor of the backing bean, do the backend processing and set the fields of teh backing bean. And when the page gets rendered its as good as what you want...

  • CS4 - Difference in height on "Open New Browser Window" from Safari to IE?

    I have put a site together and have some links that are set to "Open New Window" and have given them the appropriate sizing and on Safari Mac they show correctly but on Windows IE they show short. Is there a difference in the height dimension on Windows platform or IE in particular? Any help would be greatly appreciated.
    Thanks,
    jodmcc49

    You are going to have to post a link to the page in question.  If you set something to be a specific height and width in pixels it will be the same in both screens.

  • Closing browser window from an Applet?

    I've written a series of applets that perform different functions. I placed a button on each applet with the purpose to close the window in which that applet is running. However I don't even know where to start looking to find out how to make my applet close it's own browser window. I know how to open a new browser window from an applet but not vice versa.
    Can anyone help please?
    Mark.

    Right, I sort of tracked down some code that uses getMethods to allow me to invoke a Javascript command. It is not pretty and took a little bit of editing to get to work but it does the job without putting JS stuff into my HTML.
    However it is causing some problems. If I open one of my other applets it will only let me close that window and the previous applets ceases to respond at all. I think this may be because the invoke gets the JSObject which is the window and somehow having more than one applet open in different windows is causing it to get confused and is locking the first window and only responding to the second.
    I have seen a much simpler method that uses:
    import netscape.javascript.*;
    and JSObject to get the window but my compiler complains about the import. Any further suggestions or an example would be welcome as my current solution is a bit limited as you can effectively only have one window open at a time which doesn't suit my needs.
    Many thanks.
    Mark.

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

  • 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

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

  • Open new browser window in ADF Task Flow

    Hello to everyone,
    I have a question for those who have an experience in this area.
    So, I use ADF Task Flow model and my question is how can I open a new browser window from the task flow model?
    A know to use the abbreviation "dialog:" in navigation rules, but it opens just modal dialog.
    Thanks in advance.
    Dimitar Saykov

    Hi Frank,
    Thanks for your responce. I appreciated it.
    I've made what you told me to do and it works perfectly with unbounded task flow. But when I try to use bounded task flow in runtime i've had this error:
    oracle.adf.controller.ControllerException: ADFC-02001: ADF Controller cannot find '/WEB-INF/response-flow-definition'.
         at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:448)
         at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.loadUnmutalbeMetadataResources(MdsMetadataResourceProvider.java:358)
         at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getResources(MdsMetadataResourceProvider.java:170)
         at oracle.adf.controller.internal.metadata.MetadataService.getTaskFlowDefinition(MetadataService.java:214)
    Here is my code:
    HashMap<String, Object> params = new HashMap<String, Object>();
    String taskflowId="RespEntity";
    String taskflowDocument="WEB-INF/response-flow-definition";
    String taskflowURL = ControllerContext.getInstance().getTaskFlowURL(false,new TaskFlowId(taskflowDocument,taskflowId), params);
    launchWindow(taskflowURL,true);
    So, do you know where I should put or register the definition of my bounded task flow "response-flow-definition.xml" ?
    Regards,
    Dimitar Saykov
    Edited by: saykov on Dec 4, 2008 7:55 PM
    Edited by: saykov on Dec 4, 2008 7:55 PM

  • Open new browser window without bookmark

    when i open a new browser window (from a bookmark or using cnt N) it opens with the list of my bookmarks along the left side of the screen forcing me to x out of the bookmark list so i can have a full browser window page.
    how can i get new pages to open without the list of bookmarks on the left side of the screen?
    thanks,
    todd

    You can create a javascript to window.open having toobar, menubar or statusbar=0. The page content can be customized per need. Call this javascript from a link or button click using javascript:popup_window();
    For example,
    <script language="JavaScript" type="text/javascript">
    function popup_window()
    w = window.open("", "Window", "width=320,height=400,status=0,toolbar=0,menubar=0");
    w.document.write('<html><head><title>Help Window</title>');
    w.document.write('</head><body>');
    w.document.write('<div><font face="Arial" size="2">This is help page.');
    w.document.write('</font></div><p>');
    w.document.write('<div><font face="Arial" size="1"><a href="javascript:window.close();">Close This Window</a></font></div><p>');
    w.document.write('</body></html>');
    </script>Ittichai

Maybe you are looking for

  • Horizontal looper in table, ASP/VBS & Access

    Hi Guys, Im using DW8 and have always just used the built in repeat region for my database results and thet repeated down the page perfectly.. Now i find myslef wanting to do something similar but I want to place images on a page and say have up to 1

  • Error on import javax.servlet.*;

    Hi everyone, I am trying to compile a servlet and i receive this errors: C:\HAMID\JAVA>javac Welcome.java Welcome.java:7: package javax.servlet does not exist import javax.servlet.*; ^ Welcome.java:8: package javax.servlet.http does not exist import

  • My ipod 5 is disabled and cant restore how do i do it

    My Ipod touch (5th generation) is disabled and says i have to connect it to itunes and i try to restore it and it never does.What might be the problem or how can i fix it?

  • Stuttering audio from airport express...

    I installed my first airport express yesterday. Had some problems: my main computer couldn't load the Airport Utility (see http://discussions.apple.com/thread.jspa?messageID=7132922&tstart=0), and I've gotten things configured through another compute

  • I cloud and pictures

    I can not seem to delete pictures completely from my phone or mac photo stream, I have turned off photo stream on all divices, however it still will not delete the photos from my phone, what should I do?