Get Browser url change

Hi,
I would like to know if it's possible when i develop an applet contained in a popup window opened by a frame doc, to be informed in this applet, by the browser that a new docURL is requested in one of the frames, or that a new url is typed in the browser??
Thanks
emilie

You can read about JavaScript-to-Java communication here: http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/js_java.html
JavaScript has little to do with Java so you probably will not get many answers on this site. I suggest you search the Net for information on JavaScript. I don't (want to) know much about JavaScript.

Similar Messages

  • How get browser URL from portlet JSR-168?

    I use Oracle Portal. And I have problem.
    How get browser URL from portlet JSR-168?

    Normaly it is
    http://server:port/portletContextRoot
    Did you create the portlet with JDeveloper? When you dpeloy the portlet to your application server, JDeveloper should output the URL of the portlet test page in the deployment output feedback.

  • Get browser url from 11g form?

    Is there any function to get the current url of the browser that the 11g form applet is running in?
    Or at least the server:port part?
    Thanks

    In version 11 you can use javascript to extract the browser url. For example:
    Declare
         JS_in      varchar2(32767);
         rtn     varchar2(1024);
    Begin
         -- JS_in is the javascript funtion you want to call.
         JS_in := 'location.href';
         rtn := WEB.JAVASCRIPT_EVAL_FUNCTION (JS_in);
         -- "rtn" should contain the complete URL as seen in the browser address bar.
         -- Do something with rtn.       
    End;

  • Getting browser URL from form

    Dears,
    I'm running some forms 10gr2, I would like to get the browser URL inside my form. How could I do something like this?
    Thanks in advance.

    Also with PJC bean is possible..
    http://peterv6i.blogspot.com/2012/04/reading-applet-parameters-in-oracle.html
    or
    package in2.client;
    import java.io.PrintStream;
    import java.net.InetAddress;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class ClientInfo extends VBean
      private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
      private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
      private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
      private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
      private static final ID HOST_URL = ID.registerProperty("HOST_URL");
      private IHandler mHandler;
      private String hostAddress = "";
      private String hostName = "";
      private String hostOs = "";
      private String hostUser = "";
      private String hostURL = "";
      public ClientInfo()
        try
          System.out.println("+----------------------+");
          System.out.println("+  ClientInfro PJC     +");
          System.out.println("+  Peter Valencic      +");
          System.out.println("+----------------------+\n");
          this.hostAddress = InetAddress.getLocalHost().getHostAddress();
          this.hostName    = InetAddress.getLocalHost().getHostName();
          this.hostOs      = System.getProperty("os.name");
          this.hostUser    = System.getProperty("user.name");
          System.out.println("Host   adress: " + this.hostAddress);
          System.out.println("Host     name: " + this.hostAddress);
          System.out.println("Host op. syst: " + this.hostOs);
          System.out.println("Host username: " + this.hostUser);
          System.out.println("+----------------------+\n");
        catch (Exception e)
          System.out.println("Init error: " + e.toString());
      public void init(IHandler handler)
        super.init(handler);
        this.mHandler = handler;
      public Object getProperty(ID pid)
        if (pid == CLIENT_IP) {
          System.out.println("Client IP: " + this.hostAddress);
          return "" + this.hostAddress;
        if (pid == CLIENT_NAME) {
          System.out.println("Client Name: " + this.hostName);
          return "" + this.hostName;
        if (pid == CLIENT_OS) {
          System.out.println("Client os: " + this.hostOs);
          return "" + this.hostOs;
        if (pid == CLIENT_USER) {
          System.out.println("Clientuser: " + this.hostUser);
          return "" + this.hostUser;
        if (pid == HOST_URL) {
          hostURL = this.mHandler.getApplet().getDocumentBase();
          System.out.println("Host Url: " + this.hostURL);
          return "" + this.hostURL;
        return super.getProperty(pid);
    }

  • Epcm.doNavigate(): browser url changes

    Hi,<br>
    <br>
    i created a whole new navigation area. When using epcm.doNavigate, the url of the browser changes to the location of the current page.But i want it to stay the same: .../irj/portal.<br><br>
    I compared my code to the original topLevelNavigation, but i can't find any differences that could prevent this url change.<br><br>
    Any ideas?<br><br>
    kind regards,<br>
    Stephie<br><br>
    <script><br>
    function doMouseClick(clickedNode){<br>
         EPCM.doNavigate(clickedNode);<br>
    }<br>
    </script<br>
    ...<br>
    a href="#" onclick="doMouseClick('<%=node1stLevel.getHashedName()%>')"><%=node1stLevel.getTitle(locale)%>  </a

    Hi,
    do you have a real link or an HTMLB link?
    In HTMLB you just have to
    link.setOnClientClick("EPCM.doNavigate('ROLES://" + <yourTarget> + "', 0);");
    But even if it is no HTMLB you could try to set the mode as second parameter.
    0 or not specified: Depending on the setting of the WorkProtect feature the target is opened in a new window or on the current desktop.
    1: Open target in a new window, with no a portal header and navigation bar.
    2: Open target in a new window, with a portal header and navigation bar.
    Maybe that helps.
    Best regards
    Robert

  • How to get browser URL

    Dears
    We are working with system with 2 application server IPs and one Real IP (which is able to be accessed through internet)
    I would like to know the URL is the user using in order to use his IP to open something else from the system.
    Chcking the host name not usesful because if user connect from home using Real IP it return the AS host name which real IP redirct to it.
    I need to know how to get the URL of the session from the form or to know whether the user connected using the Real IP or not.
    (Oracle forms 10gR2)

    I think you can get a URL from/with a PJC (java pluggable component) from/with IHandler interface..
    Try this bean.. You have a property with name HOST_URL.. (with some modification you can also read applet parameters).. (I have done this now but I have not jet tested it)....but I thik this should work...
    You have also other parameters to get client IP addres and hostname...
    package in2.client;
    import java.io.PrintStream;
    import java.net.InetAddress;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class ClientInfo extends VBean
      private static final ID CLIENT_IP = ID.registerProperty("CLIENT_IP");
      private static final ID CLIENT_NAME = ID.registerProperty("CLIENT_NAME");
      private static final ID CLIENT_OS = ID.registerProperty("CLIENT_OS");
      private static final ID CLIENT_USER = ID.registerProperty("CLIENT_USER");
      private static final ID HOST_URL = ID.registerProperty("HOST_URL");
      private IHandler mHandler;
      private String hostAddress = "";
      private String hostName = "";
      private String hostOs = "";
      private String hostUser = "";
      private String hostURL = "";
      public ClientInfo()
        try
          System.out.println("+----------------------+");
          System.out.println("+  ClientInfro PJC     +");
          System.out.println("+  Peter Valencic      +");
          System.out.println("+----------------------+");
          System.out.println("+Dat spr: 10.09.2007   +");
          System.out.println("+Dat spr: 04.07.2008   +");
          System.out.println("+Dat spr: 10.07.2008   +");
          System.out.println("+Dat spr: 15.11.2010   +");
          System.out.println("+----------------------+\n");
          this.hostAddress = InetAddress.getLocalHost().getHostAddress();
          this.hostName = InetAddress.getLocalHost().getHostName();
          this.hostOs = System.getProperty("os.name");
          this.hostUser = System.getProperty("user.name");
          System.out.println("Host   adress: " + this.hostAddress);
          System.out.println("Host     name: " + this.hostAddress);
          System.out.println("Host op. syst: " + this.hostOs);
          System.out.println("Host username: " + this.hostUser);
          System.out.println("+----------------------+\n");
        catch (Exception e)
          System.out.println("Napaka pri inicializaciji beana: " + e.toString());
      public void init(IHandler handler)
        super.init(handler);
        this.mHandler = handler;
      public Object getProperty(ID pid)
        if (pid == CLIENT_IP) {
          System.out.println("Client IP: " + this.hostAddress);
          return "" + this.hostAddress;
        if (pid == CLIENT_NAME) {
          System.out.println("Client Name: " + this.hostName);
          return "" + this.hostName;
        if (pid == CLIENT_OS) {
          System.out.println("Client os: " + this.hostOs);
          return "" + this.hostOs;
        if (pid == CLIENT_USER) {
          System.out.println("Clientuser: " + this.hostUser);
          return "" + this.hostUser;
        if (pid == HOST_URL) {
          hostURL = this.mHandler.getApplet().getDocumentBase();
          System.out.println("Host Url: " + this.hostURL);
          return "" + this.hostURL;
        return super.getProperty(pid);
    }

  • I am unable to reply to your e-mail convermation--how can I get the URL to past into my browser?

    Received a confirmation e-mail requestion me to reply to it and I cannot get the URL to paste to my browser--how can I do this???????/

    Hi June,
    Sorry for the trouble you've had.
    I've verified your account on our end and you should be able to access the ExportPDF service now.
    Please let us know if you have any questions!
    -David

  • Can I get the URL of any other browser window in java

    Can I get the URL of any other browser window in java

    Hi, did you find the way to find the URL of the WSDL? I have the same problem.

  • Applescript to get the Url's of Safari for multiple browser instance??

    Hi All,
    am trying to get the URL's of the opened windows in more than one instance of Safari.
    I have got the script to get the url's of single instance, Pls suggest the same for multiple instances of safari browser with different windows opened for each instance. current code am uisng:
    tell application "System Events"
              set theURL to URL of current tab of window 1 
    end tell

    Try this:
    set theURLs to {}
    tell application "System Events"
        get id of processes whose name is "Safari"
        repeat with thisID in result
            tell (process 1 whose id is thisID)
                tell windows
                    copy value of text field 1 of group 2 of tool bar 1 to the end of theURLs
                end tell
                tell (windows whose name contains "abc")
                    click button 1 -- close
                end tell
            end tell
        end repeat
    end tell
    theURLs

  • I changed my browser url to blank now I cannot find bookmarks or menu toolbar, pls can someone tell me how to restore to original url setting?

    I tried to remove thumbnails from Firefox & following online advice went to browser.newtab.url and changed it to "blank", now when I open Firefox the menu bar with bookmarks etc is missing, but when I open a new tab the thumbnail images are still there, I don't have much experience & would appreciate advice as to how to restore. I tried restoring computer to earlier time but that didn't not restore the browser url to the state before I started messing with it. Please help!

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    If you are in full screen mode then hover the mouse to the top of the screen to make the Navigation Toolbar and Tab bar appear.<br>Click the Maximize button (top right corner of the Navigation Toolbar) to leave full screen mode or right-click empty space on a toolbar and choose "Exit Full Screen Mode" or press the F11 key.
    You can use one of these to set which toolbars to show.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars<br>Tap the Alt key or press F10 to show the Menu Bar
    *Right-click empty toolbar area
    What is the current value of the browser.newtab.url pref?
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    You can create a new Boolean pref on the about:config page to prevent Firefox from generating thumbnails for the about:newtab page.
    *name: browser.pagethumbnails.capturing_disabled with value: true
    Delete the thumbnails folder in the Firefox profile folder to remove already stored web page thumbnails.

  • Changing Client Browser URL

    How can I change the client browser URL after a request ?
    Example:
    Browser => HTTP/POST to "www.google.com" with the keywords included in the form
    Browser <= receive the response of the "www.google.com" but the url in the browser now contains "http://www.google.be/search?q=test&ie=UTF-8&oe=UTF-8&hl=nl&meta=".
    Thanks in advance,
    Geof

    In your example, Google.com does a redirect to that URL. You can do that like so:response.sendRedirect(response.encodeRedirectURL(newURL));If you are using level 2.2 or later of servlets, newURL can contain a URL relative to the current one, otherwise it has to be a full URL.

  • Getting around URL aliasing or forwarding in Automator?

    Hi,
    I am new to automator but have a simple task that seems not straightforward to implement. I have a page on Google Sites (unfortunately not open to the public) and I upload and download ruby code to it. I'd like to automate downloading all the files that are have certain file extension and are linked from the main page. Those urls, when I copy them as links from the Safari browser, have a format like;
    http://sites.google.com/a/some_school.edu/my-cool-proj/Home/builder.c?attredirec ts=0
    My workflow is four safari actions;
    Get Specified URLs (the url is the top page of the google site for the project)
    Get Link URLs from Webpages
    Filter URLs
    Download URLs
    What I notice when I download those files manually from the Google Site page, using Safari, is that there is a second url that the link I started downloading gets forwarded to, apparently, and I can't seem to capture that manually to see what it is (it flashes across the browser's address bar and then dissappears pretty quickly.)
    Is there some simple way to follow these forwarded URLs, that is relatively foolproof, and that could be automated? I could take it on faith that the implementation of those forwarded links is not going to change, though that seems iffy. I could use or build some other site to post and pull code from, but that seems risky, and honestly the Automator script wouldn't save me more time than I would lose in such an effort.
    Any suggestions would be appreciated -
    C

    Hello Prashanth,
    It may not be as simple as adding an http header through the Oracle HTTP Server (OHS) in the stack. The web page is returned by both the Parallel Page Engine in OC4J_Portal and the Web Cache, not by the OHS. Since OHS doesn't play a role in the response, it is not possible to tag the headers.
    You could consider to install a reverse proxy server (e.g. Apache 2) in front of your web cache and add the header tag in this configuration. That should work.
    Thanks,
    EJ

  • How to get the URL of an iView using AbstractPortalComponent

    Hi All,
    I need to get the URL of an iView using AbstractPortalComponent using the following code.
    But i am unable to open the URL from the Browser
    This is the following code snippet
    public class AbsClass extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalComponentURI componentURI = request.createPortalComponentURI();
    componentURI.setContextName("pcd:portal_content/LOG_Viewer/LogViewer");
    String URI=componentURI.toString();
    response.write(URI);
    The output i got from the browser is:
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Actual Path: pcd:portal_content/LOG_Viewer/LogViewer
    Output Path: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Why some extra numerics are embeded in the output path when compare with the Actual Path.
    Can any one send me the modified code and your suggestions, how to achieve this problem.
    Regards
    Phani

    Hi,
    Now i need to get the URL of this component.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentURI componentURI = request.createPortalComponentURi();
    componentURI.setContextName("com.sap.portal.appintegrator.sap.bwc.Transaction");
    String URI=componentURI.toString();
    response.write(URI);
    I export this component into Portal and i tested with an iView based on this par file, i got the URL in the Preview.
    But when i tried to run this URL by adding the http://<IPADDRESS>:<PORTNO>+URL
    I am facing one AccessDenied Exception for this Object. ( USER/GUEST)
    Is there any security zone, or other Permissions Problem, if so can you plz guide me what are the settings i have to change inorder to resolve this exception
    Regards
    Phani

  • Webkit get the URL of a link

    I am trying to add policy functionality to an app that I have written so that, for example, instead of opening a link to a page within my app itself it might open the link in the default browser or open a window to handle the functionality internally rather than use the functionality provided online.
    At this stage I am only trying to log what the URL is so that I can see what the format is. Once I've worked that out, I'll put together the policy code. The code that I have written so far is this:
    <pre>
    - (void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation
    request:(NSURLRequest *)request
    frame:(WebFrame *)frame
    decisionListener:(id<WebPolicyDecisionListener>)listener
    // get the url from the information dictionary:
    NSURL *url = [\[actionInformation objectForKey:@"WebActionElementKey"] objectForKey:@"WebElementLinkURL"];
    // log the url's scheme
    NSLog(@"absolute string is \[%@]", [url absoluteString]);
    // NSLog(@"relative string is \[%@]", [url relativeString]);
    // NSLog(@"fragment is \[%@]", [url fragment]);
    // NSLog(@"host is \[%@]", [url host]);
    // NSLog(@"parameter string is \[%@]", [url parameterString]);
    // NSLog(@"user is \[%@]", [url user]);
    // NSLog(@"password is [%@]", \[url password]);
    // NSLog(@"path is \[%@]", [url path]);
    // NSLog(@"relative path is \[%@]", [url relativePath]);
    // NSLog(@"port is \[%@]", [url port]);
    // NSLog(@"query is \[%@]", [url query]);
    // NSLog(@"resource specifier is \[%@]", [url resourceSpecifier]);
    // NSLog(@"scheme is \[%@]", [url scheme]);
    }</pre>
    As you can see, I've tried every component of the WebElementLinkURL - but without luck. The results mostly came back null - only absoluteString seemed useful (hence it's the only one not commented out). But even that didn't so far enough.
    For example, when clicking a link, absoluteString returns
    22/04/2009 09:58:00 Test[646] absolute string is [https://test.internal.com/#]
    Hovering over the same link in Safari, or clicking on it, returned https://test.internal.com/client/help
    The question, therefore, is how can I get my code to return the URL in the same manner that Safari does. The website I'm trying to view does contain a fair bit of Javascript - I don't know if this is relevant though.
    Methinks I am looking in the wrong place!

    Hi Jun,
    Before creating a customised framework page, copy the default framework
    page provided my SAP to your own namespace and make changes.
    Just open the copied page, set masthead to invisible ,this can be done
    for any other component that you want to hide on the framepage.Then
    make only the inner page visible, if that's what you want.
    Then create a url iview that points to this page and pass room details as
    parameters.This can be assigned to any role that you wish.
    <i>Pls reward points if helpful</i>
    Regards
    Vineeth

  • Keep getting "invalid url" when searching title bar and built in google search.

    When I use the title bar, or the home page to search using google, i get "invalid url". If I manually type in www.yahoo.com, or any other site, everything works fine. Usually if I restart the computer, everything is normal again. This does no happen all the time, but once it starts, it wont go away. I even restarted in safe mode and then disabled all add ons and still nothing.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration 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.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can reset the browser.startup.homepage_override.mstone pref via the right-click context menu to the default on the about:config page and close and restart Firefox to restore the about:home page to its default.
    * Open the <b>about:config</b> page via the location bar
    * Type in the Filter bar: mstone
    * Right-click the browser.startup.homepage_override.mstone line and select: Reset
    * Close and restart Firefox

Maybe you are looking for

  • Proximity Sensor Not Working on Brand new Z2

    Hi, The Proximity sensor is not working on my new Xperia Z2. I have ran all the tests on the phone and they have failed. When Put up to the ear during a call the screen does not switch off and all the icons get pressed etc. This is VERY annoying as i

  • Nokia Lumia 1520 troubles

    I purchased the Lumia 1520 6 months ago because of its large screen.  When I asked about a case or screen protector, the store I purchased it from had none and directed me toward the department stores and online.  The department stores do not support

  • Two VPNs, one accesses DNS properly, one does not.

    I have two Offices with two separate RRAS servers setup in each one on Windows 2012 Office 1 DHCP server on separate VM from RRAS server. RRAS Server on VM Office 2 RRAS and DHCP servers on same VM Both DHCP servers and RRAS servers are configured ex

  • E.B.S. upgrade from 11.5.10.2 RAC to 12.1.1 RAC

    Hello Every Body I am doing E.B.S. upgrade from 11.5.10.2 to 12.1.1, My Configuration before the upgrade is •     02 nodes database 10.2.0.4 R.A.C. •     01 node application I want to upgrade to 12 with RAC enabled in 11i, I decided to not upgrade da

  • What's up with auto tone?

    What's up with auto tone? It doesn't seem very smart or useful. It always blows out the exposure for me, midtones in particular. I do have a hardware calibrated NEC SV monitor. I would much rather Adobe bring over the algorithims for auto contrast, a