Get url from the browser form 11g?

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

Thank you

In version 11, you can use javascript to retrieve the url of the browser. 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;

Tags: Oracle Development

Similar Questions

  • Get the URL from the browser form

    Dear,
    I'm certain forms of 10gr 2, I would get the URL of the browser inside my shape. How could I do something like that?

    Thanks in advance.

    With PJC bean is also 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);
      }
    }
    
  • How to remove URLs from the browser when browser Acrobat PDF document conversion?

    Hello

    I am trying to print a page of web browser. The browser page is converted to a PDF file, and then it must be printed. In doing so, link the web from the browser is automatically attached to the PDF document. But I don't want to have the web link. How do I remove it?. I use Adobe Acrobat 9.

    Thanks in advance.

    Kirup.

    It is a feature of your browser, not Acrobat printing options. You need to find the printing options in your browser. In Seamonkey, it is under Page Setup.

  • 403 Forbidden error of execution of the procedures of the URL of the browser stored

    I am currently trying to run a simple stored procedure (ea.hello_world, where "ea" is the pattern and "hello_world" is the name of the procedure) a URL from the browser, but am getting a 403 Forbidden - error message "you don't have permission to access /pls/apex/ea.hello_world on this server. I use APEX 3.2 with Oracle 11 g and mod_plsql and gave the steps of apex_public_user. Any thoughts on what I am doing wrong?

    Here is the process I have used so far:

    Create the "Hello_World" procedure in the "EA: schema

    create or replace
    procedure hello_world
    is
    Start
    HTP. Print ("'Hello World!");
    end;

    I then successfully granted to run the apex_public_user procedure:

    Grant execute on ea.hello_world to apex_public_user;

    Then, I tried to call the stored procedure from the browser using the following syntax:

    http:// < Server >: < port > / pls/apex/< schema >. < Procedure & gt;

    I also experimented with the use of a public synonym and the configuration of the wwv_flow_epg_include_mod_local, but I do not think that the function s relevant since I'm using mod_plsql and not the embedded pl/sql gateway.

    Hello

    If you have below the line in dads.conf, then wwv_flow_epg_include_mod_local sets

    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    

    Try:
    Create public synonym

    CREATE PUBLIC SYNONYM hello_world FOR ea.hello_world;
    

    Grant privilege to execute procedure to the public

    GRANT execute on hello_world to public;
    

    Then change the APEX_030200.wwv_flow_epg_include_mod_local function

    CREATE OR REPLACE FUNCTION
    APEX_030200.wwv_flow_epg_include_mod_local(
        PROCEDURE_NAME IN VARCHAR2)
    RETURN BOOLEAN
    IS
    BEGIN  
    
        IF UPPER(procedure_name) IN (
              UPPER('hello_world'))
       THEN
            RETURN TRUE;
        ELSE
            RETURN FALSE;
        END IF;
    END;
    /
    

    Then try
    http://:/pls/apex/hello_world

    If you can now run your procedure in URL, you can then low and e.g. grant execute procedure to the user of DAD.

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

    Published by: jarola on December 6, 2011 16:20

    Published by: jarola on December 6, 2011 16:24

    typo in the name of the function

  • Launch the application from a url in the browser for BlackBerry?

    I'm developing an application where I will launch a url in the browser where I run my application.

    Suppose if I click google.com , and then press enter, it will launch my app. For this, I tried with the HttpFilterRegistry API.

    For reference, I use the HTTPFilterDemo application. But currently while launching the application, I get the NullPointerException .

    I wrote the code below I have the openFilter method:

      public Connection openFilter( String name, int mode, boolean timeouts ) throws IOException
        {
            Logger.out("Protocol", "it is inside the openFilter method");
            _url = name.substring(2);
            _requestHeaders = new HttpHeaders();
            _responseHeaders = new HttpHeaders();
            _responseHeaders.setProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE, "text/html");
    
            // Attempt to parse for the file name
            int slashIndex = name.indexOf('/', 2);
       if (_resultData == null)
            {
    
    final int modHandle = CodeModuleManager.getModuleHandle("AppLaunchBrowser");
                        Logger.out("Protocol", "here is the module handle:::" +modHandle);
                        final ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(modHandle);
    //                  final String[] arguments = new String[1];
                        final ApplicationDescriptor appDescriptor = new ApplicationDescriptor(apDes[0], new String[]{});
                        Logger.out("Protocol", "here is the app descriptor:::" +appDescriptor);
                        try {
                            final int appCode = ApplicationManager.getApplicationManager().runApplication(appDescriptor, true);
                            Logger.out("Protocol", "here is the app code:::" +appCode);
                        } catch (ApplicationManagerException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
         }
            return this;
        }
    

    And I am creating alternative entry point in the application class and using as below:

    public class AppLaunch extends UiApplication{
        public static void main(String args[])
        {
            Logger.out("AppLaunch", args+"length of the arguments::::" +args.length);
            if((args != null) && (args.length > 0) && (args[0].equals("background")))
            {
                Logger.out("AppLaunch", "in the alternate entry point");
    //          Logger.out("AppLaunch", args+"length of the arguments::::" +args.length);
                HttpFilterRegistry.registerFilter("www.google.co.in", "com.innominds.ca", false);
    
            }
            else
            {
                Logger.out("AppLaunch", "Inside the Applaunch");
                AppLaunch theApp = new AppLaunch();
                theApp.requestForeground();
                Logger.out("AppLaunch", "created the app launch object");
                theApp.enterEventDispatcher();
    //          Logger.out("AppLaunch", "in the alternate entry point");
    //          HttpFilterRegistry.registerFilter("www.google.co.in", "com.innominds.ca", false);
            }
        }
    
        public AppLaunch()
        {
            checkPermissions();
            showTestScreen();
        }
    
         /**
         * This method showcases the ability to check the current permissions for
         * the application. If the permissions are insufficient, the user will be
         * prompted to increase the level of permissions. You may want to restrict
         * permissions for the ApplicationPermissionsDemo.cod module beforehand in
         * order to demonstrate this sample effectively. This can be done in
         * Options/Advanced Options/Applications/(menu)Modules.Highlight
         * 'ApplicationPermissionsDemo' in the Modules list and select 'Edit
         * Permissions' from the menu.
         */
        private void checkPermissions()
        {
    
            ApplicationPermissionsManager apm = ApplicationPermissionsManager.getInstance();
            ApplicationPermissions original = apm.getApplicationPermissions();
    
            if(original.getPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER) == ApplicationPermissions.VALUE_ALLOW)
            {
                // All of the necessary permissions are currently available
                return;
            }
    
            ApplicationPermissions permRequest = new ApplicationPermissions();
            permRequest.addPermission(ApplicationPermissions.PERMISSION_BROWSER_FILTER);
    
            boolean acceptance = ApplicationPermissionsManager.getInstance().invokePermissionsRequest(permRequest);
    
            if(acceptance)
            {
                // User has accepted all of the permissions
                return;
            }
            else
            {
    
            }
        }
    
        /**
         * Shows the test screen to allow the user to exercise the application
         * permissions capabilities.
         */
        private void showTestScreen()
        {
            UiApplication.getUiApplication().pushScreen(new AppLaunchScreen());
        }
    }
    

    can someone please help... Sorry for the almost total code display...

    I was finally able to solve this problem. NPE is to come in other methods of recall because I'm implementation of the FilterBaseInterface.

  • get the URL of the browser

    Is it possible to get the URL of the browser? I have seen an application that gets it and check.

    I searched all the related browser api but unsuccessful.

    You can add your own item to the browser application menu. The current URL is sent to your application when selected by the user.

    See ApplicationMenuItem and ApplicationMenuItemRepository in the javadocs.

  • OATS: Error Message 'Unable to get a connection from the browser' on the record

    Hello

    I am involved in the control of the operation for application Siebel 8.1, with the OATS 9.3 tool.

    Trying to save, an Error Message * "unable to get a connection from the browser. You want to continue to wait for the browser load? "* appears, even if InstallBrowserHelpers has been installed.
    I tried to uninstall the 'BrowserHelpers' and re - install but the question remains.

    your response on this will be appreciated.

    Thank you!

    Try to uninstall everything that touches on OATS to your PC then re - install. Uninstall steps are in this forum. You can search for it. Work around the error can take a long time.

    Concerning
    CP

  • How can I get the filtered data from the first form

    How can I get the filtered data from the first form in a second form to make an update of the multi.
    Thank you very much

    William,

    I would use for this collections. A link is good if you need to pass a single value.

    1. create a collection
    2 fill the collection with your result set
    3. go in the page target and uses a method of a query in your link to this page
    4. your target page receives a request and allows you to edit documents.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Why you put "Open a new tab" on the right side of the browser, when you close a tab on the left and you type a new URL in the browser on the left?

    I changed my computer from XP to Windows 7 and migrated my FF browsers. But... now the tabs at the top of the page are all right (they were upper-front left - where I loved her)

    The most important is the "open a new tab" + - is on the right. But that is not sensible. Why you put "Open a new tab" on the extreme right of the browser, when you close a tab on the left and you type a new URL in the browser on the left?

    How can I put my "open a new tab" immediately to the right of 'Close tab' - as if it was before?

    Please advise?

    Try clicking on "Restore default settings" in the palette to customize to reset the toolbar customization.

    • Firefox '3-bar' menu button > customize
    • View > toolbars > customize

    You can attach a screenshot?

    • Use a type of compressed as PNG or JPG image to save the screenshot
    • Make sure you do not exceed the maximum size of 1 MB
  • Backflip: Is it possible to share links to social networking sites from the browser?

    Hi all. I was playing with my Backflip and that most of the time (apart from some odd questions every now and again). I love how I can post updates from a single blow to all my social networks that I have linked to my Motoblur account. It is quite convenient. I did something similar on my computer browser for a while with the help of an add-on called Yoono. Although one thing I can make sure I did not quite understand yet how can I go on the sharing of links on all of my accounts of social network at the same time? Is it still possible to do so directly, or do I have to use the sharing links on individual pages or copy the link and put in an update? Yoono offers a unique button 'share' which will lead the URL I'm at, capture images of the page, I would add a little descriptive text and then send it to networks no matter what I choose in a single process. It saves time by not requiring no me click every button share for each network and add descriptions for everything. Just click once and it goes to all. In the same way that status updates the work of Motoblur. Given that social network accounts are already synchronized with our phones, I was hoping there would be something like that where I could share a link from the browser or RSS reader app and post the link to all my accounts in a single operation without welding. So are there currently such a thing, or what I have to use a workaround? Thank you!

    Download free browser dolphin of the market app. When using it just click the menu button and it gives options for sharing things on different sites.

  • The server request timeout expired pending request from the browser. How to fix?

    After having successfully reached www.foxnews.com, trying to branch to one of the stories in the viewfinder and receive "Request Timeout".
    The server has expired pending request from the browser.

    Reference #2.5cab3c41.1399773250.0
    Using Internet Explorer I don't have this problem. How can I do this time-out to go

    You can try the following steps in case of problems with web pages:

    You can reload webpages and ignore the cache to refresh potentially stale or corrupt.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • When I type or paste a URL into the address bar or select a url from the address bar dropdow, the "enter" button does nothing. I have to press the green arrow to load the url?

    Each time it manually to enter a url, past a url, or select a url from the address bar, the system requires that I click on the green arrow to go to the url. The entrance to key doe nothing. Am I the only one having this problem?

    This problem may be caused by an extension (possibly AVG Safe Search) which does not work properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    In Firefox 4, you can use one of them to start in the questions to troubleshoot Firefox in Safe Mode:

    • Help > restart with disabled modules
    • Hold down the SHIFT key while double-clicking the shortcut from the desktop Firefox (Windows)
  • Y510 unable to get data from the camera.

    Hello

    I have a Y510 with Windows Vista 32 bit, 3 GB RAM, only 5 weeks. I get this message when I try to use Veriface, "unable to get data from the camera. The camera may have been disconnected or busy. I reinstalled Vista of the State in which the laptop came, but it does not work. I also updated the bios and install other updates were available. I would appreciate any advice.

    Thank you

    Peter

    I wish it was as easy as press Fn + Esc, I looked through an another Y510 our office and managed to find a process that must be set to Auto, the process is KtmRm. This process cannot be disabled, handicapped, or on a time delay, it must be AUTOMATIC.

  • I keep getting messages from the center of Action McAfee Anit-virus, Anti-spyware & firewall disabled, as well as Windows Firewall

    It started after a message popped up on Adobe Reader and I deleted it.  I tried to run applications without success.

    Hello

    Welcome to the Microsoft Community and forums thanks for posting the question. According to the description, you get messages from the center of the Action as McAfee and the Windows Firewall is disabled.

    Please answer a few questions to refine the question.

    1. you remember to make changes to the computer before this problem?
    2. you have more of a security software installed?
     
     
    Anti virus definitions update and check the status
     
     
    Method 1: I suggest you to enable and disable the Security Center
    service in Windows 7:
    a. click the Start button, type services.msc and pressenter.
    b. in the list of Services, right click on Security Center, clickingProperties
    and select disabled.
    c. restart your computer.
    d. once again, follow steps a and b, and then select Automatic (delayed start)
    e. start the Service.
     
     
    Method 2: You can uninstall and reinstall the security software and check.
     

    Method 3:

    Restore the system to an earlier point before installing this application.

    System Restore can return your files system to a point in time before you noticed a problem, without affecting documents, photos, or other personal files. If the system restore does not resolve the problem, you can undo the restore operation and choose a different restore point.

    More information on:

    System Restore: frequently asked questions
     
    Hope this information helps. Please reply with the status so that we can help you.
  • How can I customize the thumbnail that is displayed next to the URL in the browser?

    The use of MUSE to create my site, how can I customize the thumbnail that is displayed next to the URL in the browser?  Also, how can I customize the thumbnail image that appears during the incorporation of the site link in things like Facebook?

    Automatic thumbnails are used... I do not understand how they are drawn and how do I customize Muse.

    The thumbnail is the brown box here:

    Screen Shot 2016-04-06 at 8.28.48 PM.png

    The thumbnail is the white box here:

    Screen Shot 2016-04-06 at 8.30.04 PM.png

    Hello

    You can do this by adding Og tags for Facebook share and favicon.

    To apply a favicon in Muse, please go to file > Site Properties > Content and apply the favicon.

    Adding images to Facebook Share, please see a similar thread below.

    When I share the link to my site on Facebook or other social media, the preview image is empty, there is nothing there anyway to solve this problem?

    Kind regards

    Vivek

Maybe you are looking for

  • Cannot export vcard do not get save option

    I am selecting all contacts and export vcard.  I do not get an option to save and nothing happens.  It is a windows PC 8.1.  I need to export all my contacts from icloud, please help.

  • ENERGY SAVING does not work! Satellite A105

    Please read very carefully, as I tried to make it as detailed as possible. I had this problem before, and when I installed the new BIOS driver, it fixed itself. I'm not so lucky this time. Also, please AVOID recommending to use my recovery CD, becaus

  • Blue screen stop: c00002 / a (fatal system error)

    Blue screen stop: c00002 / a (fatal system error) the windows login process ended unexpectedly with status 0xc0000005 (0x00000000 0x00000000) the system has been shut down. I have dell windows XP home service Pack 3 computer. I had a problem with sec

  • Player could support the file type or does not endorse the codec

    Need help to open video files.  I can play other video mp4 files, but others give me this error.  Complicated!  Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the f

  • automatically changed file format

    HI -.I did save work under Windows PCM wav format.  Recently when I save a mix, it is automatically registered as a "16" file - that is, hearing, Windows PCM wav is not an option, but here's what it shows instead: Windows PCM (*.16; *.wav)What is and