Detect browser name

Hi!
I need to define the type of client web-browser (Opera, Ie, chrome, firefox), under which launched forms.
Tell me, please, how I do it.
I am using FORMS 10.1.2.3.0
Edited by: Ihavoker on 09.12.2010 11:25

Create this simple html page:
<HTML>
<script type="text/javascript">
  var nav_name = navigator.appName + " " + navigator.appVersion;
  var url = "http://machine:8889/forms/frmservlet?config=myconfig&form=test.fmx&otherparams=BROWSER="+nav_name;
  window.location.href = url ;
</script>
<BODY>
</BODY>
</HTML>Then just add a BROWSER parameter to your starting form.
Francois

Similar Messages

  • Detect Browser Version & Browser Name

    Hello,
    I have written some java code to detect browser version & name but its not working in ADF. Please help to detect browser details.
    public void browserDetail(HttpServletRequest request,
    HttpServletResponse response)throws IOException,ServletException{
    response.setContentType("text/html");
    Enumeration headerNames = request.getHeaderNames();
    while(headerNames.hasMoreElements()) {
    String headerName = (String)headerNames.nextElement();
    System.out.println("BrowserName" + headerName);
    System.out.println("Header" + request.getHeader(headerName));
    Please Help
    Thanks

    Hi,
    try this: http://blogs.oracle.com/jdevotnharvest/entry/how_to_detect_browser_type
    Frank

  • Is it possible to detect browser information directly from FLEX????

    Hi All,
    Can we detect our browser information (Browser Name, Version
    etc) directly from FLEX? I don't want to use External Interface for
    this purpose. Pease reply me soon.
    Thanks,
    Amit

    Hi Amit,
    The replies from Gnomann are correct.
    Following the logic that Gnomann cited in his second post
    (suggesting using ExternalInterface to execute browser JavaScript),
    following are some examples.
    These examples also demonstrate how JavaScript methods can be
    written in-line directly in the ExternalInterface.call() execution:
    var appName:String =
    ExternalInterface.call( "function getAppName(){ return
    navigator.appName; }"
    var userAgent:String =
    ExternalInterface.call( "function getUserAgent() { return
    navigator.userAgent; }"
    var appVersion:String =
    ExternalInterface.call( "function getAppVersion(){ return
    navigator.appVersion; }"
    I have posted a different, runnable example here:
    http://flexflashvideo.com/codesamples/flex/flex3/browserinfo/
    You can right-click on the swf at the link above for "
    View
    Source"
    btw ... an advantage of writing the JavaScript methods
    in-line in the ActionScript ExternalInterface.call() executions is
    that all of the code can be encapsulated in the Flex logic. That is
    you do not have to write the JavaScript separately in the HTML
    wrapper. You can if you want, of course. Certainly no harm in that
    ;-) Since your original question was how to detect the browser
    information "directly from FLEX", I suspect you might like being
    able to write the JavaScript methods in-line ;-)
    Please post back regarding whether the above answers your
    question, and if you find it helpful :-)
    Best regards,
    g

  • How to detect Browser using JSP ?

    Hi friends,
    I wanna to put some code to detect browser and
    Other than IE6+ i have to block other browser to display login.
    How do i check that ? Using JSP.
    e.g.
    If i open IE6+ login page should be displayed. Else on other browsers
    it will check brower and deny to display login page.
    How Do i check it ? please Help me.

    this code works for me in IE,Safari and firefox but i could not check in netscape as i dont have.
    String userAgent = request.getHeader("User-Agent");
          System.out.println("UserAgent:"+userAgent);
          userAgent=userAgent.toLowerCase(); //convert to lowercase and then check
          if(userAgent.indexOf("netscape6") != -1)
         System.out.println("Netscape");
          else if(userAgent.indexOf("msie") != -1)
              System.out.println("IE");
         else if(userAgent.indexOf("firefox") != -1)
         System.out.println("Firefox");
         else if(userAgent.indexOf("safari") != -1)
         System.out.println("Safari");
         else
              System.out.println("Else");
        

  • How to detect browser window move?

    Hi,
    I want to know if there is certain event defined in Java to detect browser window move. Like in JavaScript, there is an event handler "onMove".
    Thanks.

    No, I think you can have "onMove" call a java function.

  • How to Detect browser crash

    hi i want to know how to detect browser crash or the way to go about it , i can use any language to any api's plz specify me some solution .It would be really healpfull

    paul_123 wrote: hi i want to know how to detect browser crash ..
    Like the other person that replied, I do not quite understand why it is of interest that the end user's browser crashes. If, like they suspect, it is to do with your applet, I think the best solution is to launch the applet using webstart and forget the browser. If the end user launches a webstart based applet from the browser and the browser crashes, the applet will keep working just fine.
    Is your applet publicly available? If so, what is the URL where we can see it?

  • How to disable auto detect browser settings

    When I want to start scan to Optimize Internet in "Easy Solve" feature of Comcast. It says DISABLE AUTO-DETECT BROWSER SETTINGS to enable scan running. Please send me the answer.

    Is this page accessible to non-subscribers? If so, please provide a URL. If not, hopefully Comcast can answer this question.

  • Detecting server name in java

    I need to programmatically detect the name or ip of the server my java code is running on. Does anyone know how to do this?
    Thanks,
    -G

    If you are not behind a router, this code work well:
    import java.net.*;
    import java.util.Enumeration;
    public static InetAddress getInternetAddress()
         try
              InetAddress address;
              for(Enumeration e1 = NetworkInterface.getNetworkInterfaces(); e1.hasMoreElements();)
                   for(Enumeration e2 = ((NetworkInterface)(e1.nextElement())).getInetAddresses(); e2.hasMoreElements();)
                        address = (InetAddress)e2.nextElement();
                        if( !address.isLoopbackAddress() && !address.isSiteLocalAddress() )
                             return address;
         }catch(Exception e){}
         return null;
    }

  • Detect browser inactivity

    How is it possible for an applet to detect if the browser window becomes passive (user changed to another window)? I've seen an applet to do this but I don't understand how it's implemented.

    Jo,
              Pls refer SnoopServlet.java(weblogic_home/examples/servlets) which
              comes with weblogic installation.
              Kumar
              Jan-Olav Eide wrote:
              > How can I detect browser version & type from a servlet ?
              >
              > --
              > jo
              

  • Detect browser using velocity

    Can any one tell me how the codes are written in velocity to detect browser.

    AmitChalwade123456 wrote:
    rrp wrote:
    Can any one tell me how the codes are written in velocity to detect browser.what's this velocity ?? share u r knowledge with usVelocity is a templating engine. [ http://velocity.apache.org/ ].
    I think I would put the browser discovery code (if I really had to use it) in controller. (Or JavaScript).

  • Detect browser version & type from a servlet

    How can I detect browser version & type from a servlet ?
              jo
              

    Jo,
              Pls refer SnoopServlet.java(weblogic_home/examples/servlets) which
              comes with weblogic installation.
              Kumar
              Jan-Olav Eide wrote:
              > How can I detect browser version & type from a servlet ?
              >
              > --
              > jo
              

  • How to detect browser close event in flex ?

    How to detect browser close event in flex ?

    This link may help:
    http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html
    Best,

  • Finding Browser Name

    hi all,
    how to find the browser name using jsp code. can any one give me the code.

    randy_ortan never give feedback on his questions. Take a look at his history:
    [http://forums.sun.com/thread.jspa?threadID=5331148]
    [http://forums.sun.com/thread.jspa?threadID=5329974]
    [http://forums.sun.com/thread.jspa?threadID=5327607]
    [http://forums.sun.com/thread.jspa?threadID=5327607]
    [http://forums.sun.com/thread.jspa?threadID=5316528]
    [http://forums.sun.com/thread.jspa?threadID=5316747]
    [http://forums.sun.com/thread.jspa?threadID=5331148]

  • Trouble detecting browser close in Internet Explorer

    Please help!
    I'm trying to detect when the browser closes (or tab closes, or page reloads, etc.) so that I can save user information. I've followed the advice of others on the web, and have it working with Firefox, but not IE. The code in my wrapper is below, which attempts to get access to the embedded swf object a variety of ways to presumably handle multiple browsers. PLEASE HELP!
    //  Function to get a reference to the embedded swf file
                        function getFlashMovieObject(movieName)
                          if (window.document[movieName])
                              return window.document[movieName];
                          if (navigator.appName.indexOf("Microsoft Internet") == -1)
                            if (document.embeds && document.embeds[movieName])
                              return document.embeds[movieName];
                          else // if (navigator.appName.indexOf("Microsoft Internet") != -1)
                            return document.getElementById(movieName);
    Here's the code that calls this function:
                        window.onbeforeunload = function() 
                            var myApp = getFlashMovieObject("MySwf");
                            return myApp.onCloseApplication();
    Here's the code that embeds the swf:
                      var flashVars = {};
                      var strHref = window.location.href;
                      if ( strHref.indexOf("?") > -1 )
                            var strQueryString = strHref.substr(strHref.indexOf("?")+1);
                            var aQueryString = strQueryString.split("&");
                            for ( var iParam = 0; iParam < aQueryString.length; iParam++ )
                                var aParam = aQueryString[iParam].split("=");
                                flashVars[aParam[0]] = aParam[1];
                    var params = {};
                    params.quality = "high";
                    params.bgcolor = "#ffffff";
                    params.allowscriptaccess = "sameDomain";
                    var attributes = {};
                    attributes.id = "MySwf";
                    attributes.name = "MySwf";
                    attributes.align = "middle";
                      //create your instance of your SWF
                      swfobject.embedSWF("MySwf.swf", "flashContent", "100%", "100%", "10.0.0", "expressInstall.swf",
                        flashVars, params,attributes);

    To make the hyperlinks in PDF file work, do the following:
    Open your Adobe Reader
    Then select Edit à Preferences… from the Action Bar.
    To make the links active, select Documents (under Categories).  On the right side, now under PDF/A View Mode, using the drop-down change  “Only for PDF/A documents”  to  “Never”.   Now click the OK button.

  • How to detect Browser Version using JSP ?

    Hi friends,
    Previously i have asked regarding browser detection.
    Now i want to inquiry regarding version detection.
    I have to block the users other than IE6+.
    So how i do that ??
    Remember : Other than IE6+ users are blocked.
    Please Help Me...

    well in general request.getHeader("user-agent"); should help you but in few cases it may not work in because of few security reasons.
    the best work around for this problem would be usage of javascript and sending browser realted information via hidden parameter
    and here is an example for you
    <body>
    <form name="sampleForm" action="randomAction">
       <input type="hidden" id="browserVersion" name="browserVersion" />
       <input type="hidden" id="userAgentHeader" name="userAgentHeader"/>
         <input type="hidden" id="appCode" name="appCode"/>
    </form>
    <script language="javascript">
      this.document.getElementById('browserVersion').value = navigator.appName+' '+navigator.appVersion;
       this.document.getElementById('userAgentHeader').value = navigator.userAgent;
       this.document.getElementById('appCode').value = navigator.appCodeName;
    </script>
    </body>and you would get the info by getting
    request.getParameter("appCode");and etc..
    hope this might help :)
    REGARDS,
    RaHuL

Maybe you are looking for

  • Multiple iPods, One Computer - Question

    I currently have a Classic 160GB and I'm looking into getting a Nano or iTouch soon. I have the ability to use more than one computer or more than one account to sync them both that way, but I was wondering about a different method not mentioned in t

  • How To Use The Pen Tool in Adobe Illustrator, Photoshop and InDesign CS6 | Creative Suite Podcast: Designers | Adobe TV

    In this episode of the Adobe Creative Suite Podcast Terry White shows how to use the Pen Tool to create Art, Frames and to trace images in Photoshop CS6. If you've never used the Pen Tool before, this is your video! http://adobe.ly/STegFg

  • Downloading both the HD and SD versions of a movie

    Usually when I purchase an HD movie, I get both an HD and an SD version.  That's good because a familiy member has an older ipod that only plays the SD versions.  However, for the Bee movie, when I made the purchase, I only got the HD version.  They

  • SWI5 transaction - is there a table view ?

    Hi I am trying to pull a report of outstanding approval inbox items (TS1230097 - for leave requests) that I see when I go to tcode SWI5 for managers. If I run a report it does not give me the manager id in it which I need. Is there a table view for S

  • Frozen email screen after closing Google Maps app

    My iphone was working fine. I went into Google Maps just to check it out. After I went back to my Home Screen and then clicked on email, my email screen was frozen. This is the screen that has all the folders listed. I cannot open any emails under Re