Detect Browser Size in Forms10g

I am trying to center within my browser window a called form (an "About" pop-up). Since Forms 10g uses SDI, trying to get the size of my window using GET_WINDOW_PROPERTY (FORMS_MDI_WINDOW ...) does not work. I’d use WebUtil’s WEBUTIL_BROWSER functions, but I do not want the Applet size (since it can and will be bigger than my normalized browser window). Is there a way I can detect the height and width of my browser?
Thanks in advance.

Donald - the getAppletSize function of WebUtil browser should return the real width of the MDI frame at that point in time - not the initial values defined the the Formsweb.cfg.
Of course if you want the values defined in the CFG then you can use the getAppletParemeter function to get at that

Similar Messages

  • Block websites from detecting window size

    It seems that many websites are able to detect the size of the browser window. This creates two major problems for me:
    1. If I resize the window smaller than some unknown threshold width, the site switches to a mobile version.
    2. If I resize the window beyond a certain dimension, video sites like Youtube will shrink the size of the video player to some proportionally smaller size.
    I have a 42-inch monitor, so I like to work with multiple windows open at the same time, in non-overlapping positions. I might want to watch a video in a window perfectly resized to the dimensions of the video player plug-in only, in the corner of my screen, while working on a Word document side-by-side with a webpage and an Excel spreadsheet. I like to resize things in tall, narrow dimensions because this is what documents look like in real life and it minimizes vertical scrolling.
    How can I either block websites from detecting my browser window dimensions or pass a phony value to them so they display the full-size page (including larger sizes of media players) no matter what size I actually make the windows? I'd prefer to do this in the about:config rather than installing an add-on.
    Why do web designers put so much effort into avoiding scrollbars?!?! Is it so that we have to look at their stupid ads and banners along the margins of the real content?

    ''jscher2000 [[#answer-716231|said]]''
    <blockquote>
    I don't know of a way to override that and report a higher value without actually changing the zoom level of the page to make the text smaller. Hmm...
    </blockquote>
    And that's precisely what I want to do. How many different ways can a website query the user's screen size? (JS, CSS, etc.) If the list of methods is short enough, is there a way that I could block those specific methods, or better yet force a return value of my choosing? I don't know anything about user stylesheets, but based on some casual research I suspect that I can stop CSS-based queries by creating my own user stylesheet.
    I suppose an extreme measure is to block those scripts entirely, but that would break a lot of websites these days.

  • 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");
        

  • Site that automatically resizes images based on browser size

    Hi. I need to make a site that automatically adjusts the size of the images based on the browser size, but keeps the image quality. Does anyone know how to do this without using flash?
    I basically want the site to perform like [http://www.shotview.com/|http://www.shotview.com/] . Thanks for your help.

    first time accessing website get screen size info using javascript and then redirect to next page and store screen size info into session. then, when requesting pictures from browser use custom servlet, mapped to image extension, that renders images to different resolution.

  • Parallax scrolling not adjusting to different browser size, help?

    Hello everyone,
    I am putting together this parallax website, http://natashajackson.businesscatalyst.com/index.html and it works on my 15 in mac book, but does not adjust size for smaller or larger screens. I can't seem to make the timing for all the "scrolling effects" line up for all browser sizes.
    I have watched many muse tutorials and have figured out how to avoid horizontal scrolling, but again, it only appears to be working on my 15 in book.
    The below photo shows my layout properties. Any magical tips that I am missing? I look forward to your feedback!
    Thank you

    Hey manna9er I was able to figure out the 100% browser width and it turned out to be pretty simple. At first I was "Placing" my images into muse and scaling them to the width of browser, and it never was 100% width. I found that you cannot "Place" you must use the "Rectangle Tool" and create box the width of the browser, make sure that it is 100% browser width, the border line turns red and a tool tip informs you, as seen in image)
    Next use the "Fill" option on your top menu bar-->select "Choose Image Background"--> upload image file-->scale to whatever size/style you want. (see image below)
    For parallax go to Window-->scroll effects--> and play with Motion, Initial Motion, Key Point and Final Motion. Parallax takes some toying with to get desired effect.
    Hope this helps

  • How to detect the size of an image

    Hi,
    I have a servlet which grabs an image (jpg or gif) from a BLOB stored in my database and sents the image back to the client through the ServletOutputStream. This all works good and the image is presented nicely. However, I now want to have my servlet detect the size of the image, and if it is too big resize the image and return it.
    As I am new to images in JAVA I am unsure how to do this and what tools to use for it. I found some information on JAI, but this seems way to elaborate for what I need. Please let me know if anyone knows how to do this.
    Thank you and regards,
    Joost Schouten

    This code figures out the size of any object in bytes. I am not sure about resizing the image though..
    public int getSerializedSize(Object object)
           try
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              ObjectOutputStream oos = new ObjectOutputStream(baos);
              oos.writeObject(object);
              byte[] bytes = baos.toByteArray();
              oos.close();
              baos.close();
              return bytes.length;
           catch(Exception e) //not good
              e.printStackTrace();
           return -1;
         }Rishi

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

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

  • 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
              

  • Make a background photo that will resize to the users browser size

    I'm trying to create an effect like this in Iweb:
    http://neistatbrothers.com/
    You'll notice that the background image resizes to the browser size.
    I have read threads like that say to edit the HTML from "Scroll" to "Fixed"... that doesn't seem work.
    THIS website is NOT what I am looking for.
    THIS website is NOT what I am looking for.
    Thanks!

    Thanks Wydor,
    I'm trying to decode this very elegent and cryiptic answer. I am an iweb user after all so I need a few more baby steps. I'm going to try and over-communicate to clarify. This response is long, but I appreciate your help.
    The link that you sent me (the way that page looks) is exactly what I am looking for.
    So I'm assuming that this is the code I will need :
    <script language="JavaScript" type="text/javascript">
    <!--
    parent.document.body.style.backgroundImage='url(../images/beach.jpg)';
    parent.document.body.style.backgroundRepeat='no-repeat';
    parent.document.body.style.backgroundPosition='50% 0%';
    parent.document.body.style.backgroundAttachment='fixed';
    parent.document.body.style.MozBackgroundSize = 'cover';
    parent.document.body.style.backgroundSize = 'cover';
    // -->
    </script>
    And of course changing the image title and folder.
    From iweb I have downloaded my "site" to a local folder where I can edit the HTML files from Dashcode 3.0.1.
    The code looks like this for that page which I have titled "Blank", the Image I want to use is titled "SNV33631.jpg"  :
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="Generator" content="iWeb 3.0.4" />
        <meta name="iWeb-Build" content="local-build-20110920" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <meta name="viewport" content="width=700" />
        <title>Blank</title>
        <link rel="stylesheet" type="text/css" media="screen,print" href="Blank_files/Blank.css" />
        <!--[if lt IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Blank_files/BlankIE.css'/><![endif]-->
        <!--[if gte IE 8]><link rel='stylesheet' type='text/css' media='screen,print' href='Media/IE8.css'/><![endif]-->
        <script type="text/javascript" src="Scripts/iWebSite.js"></script>
        <script type="text/javascript" src="Scripts/Widgets/SharedResources/WidgetCommon.js"></script>
        <script type="text/javascript" src="Scripts/Widgets/Navbar/navbar.js"></script>
        <script type="text/javascript" src="Blank_files/Blank.js"></script>
      </head>
      <body style="background: rgb(255, 255, 255) url(Blank_files/SNV33631.jpg) repeat scroll top left; margin: 0pt; " onload="onPageLoad();" onunload="onPageUnload();">
        <div style="text-align: center; ">
          <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word;  background: transparent; text-align: left; width: 700px; " id="body_content">
            <div style="margin-left: 0px; position: relative; width: 700px; z-index: 0; " id="nav_layer">
              <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
              <div class="com-apple-iweb-widget-navbar flowDefining" id="widget0" style="margin-left: 35px; margin-top: 0px; opacity: 1.00; position: relative; width: 630px; z-index: 1; ">
                <div id="widget0-navbar" class="navbar">
                  <div id="widget0-bg" class="navbar-bg">
                    <ul id="widget0-navbar-list" class="navbar-list">
    <li></li>
    </ul>
    </div>
    </div>
              </div>
              <script type="text/javascript"><!--//--><![CDATA[//><!--
    new NavBar('widget0', 'Scripts/Widgets/Navbar', 'Scripts/Widgets/SharedResources', '.', {"path-to-root": "", "navbar-css": ".navbar {\n\tfont-family: Arial, sans-serif;\n\tfont-size: 1em;\n\tcolor: #666;\n\tmargin: 9px 0px 6px 0px;\n\tline-height: 30px;\n}\n\n.navbar-bg {\n\ttext-align: center;\n}\n\n.navbar-bg ul {\n\tlist-style: none;\n\tmargin: 0px;\n\tpadding: 0px;\n}\n\n\nli {\n\tlist-style-type: none;\n\tdisplay: inline;\n\tpadding: 0px 10px 0px 10px;\n}\n\n\nli a {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:visited {\n\ttext-decoration: none;\n\tcolor: #666;\n}\n\nli a:hover\r{\r\n \tcolor: #463C3C;\n\ttext-decoration: none;\r}\n\n\nli.current-page a\r{\r\t color: #463C3C;\n\ttext-decoration: none;\n\tfont-weight: bold;\r\r}\n", "current-page-GUID": "68D4EEAC-3DE6-4685-B7F9-9DBD522AB485", "isCollectionPage": "NO"});
    //--><!]]></script>
              <div style="clear: both; height: 0px; line-height: 0px; " class="spacer"> </div>
            </div>
            <div style="float: left; height: 0px; line-height: 0px; margin-left: 0px; position: relative; width: 700px; z-index: 10; " id="header_layer">
              <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
              <div style="height: 1px; width: 630px;  height: 1px; left: 35px; position: absolute; top: 3px; width: 630px; z-index: 1; " class="tinyText">
                <div style="position: relative; width: 630px; ">
                  <img src="Blank_files/shapeimage_1.jpg" alt="" style="height: 1px; left: 0px; position: absolute; top: 0px; width: 630px; " />
                </div>
              </div>
            </div>
            <div style="margin-left: 0px; position: relative; width: 700px; z-index: 5; " id="body_layer">
              <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
              <div style="height: 480px; line-height: 480px; " class="spacer"> </div>
            </div>
            <div style="height: 150px; margin-left: 0px; position: relative; width: 700px; z-index: 15; " id="footer_layer">
              <div style="height: 0px; line-height: 0px; " class="bumper"> </div>
            </div>
          </div>
        </div>
      </body>
    </html>
    My question are as follows
    1: Where do I paste the code you gave me.
    2: do I need to reformat or add modifiers like, "<" or ">" to it because it is Javascript not HTML code.
    3: do I paste it in the "Index" file or the "Blank" file.
    Thanks

  • Keeping layers overlapping in different browser sizes

    I am having trouble finding a simple solution to a AP Div problem. I have set up a new file using Dreamweavers HTML page "1 column fixed, centred, header and footer". This is excellent as it keeps the design no matter which browser size my audience may be using. I now wish to add a new Div which will contain my links bar across the top overlapping my logo. When I do this the links bar layer does not move with the rest of the design as the browser size changes.
    So basically how can I maintain any new layers I add to this page to keep them moving in line with the headers, footers and rest of the Divs as the browser resolution/size changes?
    Help appreciated!

    If you do keep on with the use of AP divs then I think my earlier comment is how I see the solution to what throws a lot of people:
    martcol wrote:
    If you do use position absolute you should think about using position:relative on the containing element which will then become the reference for the positioned element.
    An absolutely postitioned element is always positioned relative to something.  If a containing element is not set as position:relative the absolutely positioned element's reference becomes the browser window.  This means that the absolutely positioned element is positioned relative to something that can be moved around (that's my paraphrase).
    Likewise, absolutely positioned elements don't seem like anything else that isn't absolutely positioned or fixed.  So, if you use AP divs as a crucial part of the structure of your page you need to check carefully what might happen if the user increases the text size in the browser.
    Best of luck
    Martin

Maybe you are looking for

  • Multiple copies of same songs in itunes

    i-tunes is showing multiple copies of the same songs in the library....any ideas why? Not all songs have multiple copies, which is even stranger! Also, other than working through manually and deleting the duplicates (2,500!), is there a way I can del

  • Multiple queue vs single queue - peformance

    Hi All, Could pls throw some light on the following design. Currenty, We have more than 100 queues and for each there is a different MDB to receive the message.Now, somehow we made a single instance of same MDB listen to all these queues by looking a

  • HP w2338h monitor not turning on!!!

    my HP w2338h monitor is not turning on. My computer is on, blue power button, screeching noise, the whole enchilada. I shook the mouse, clicked aimlessly, then tapped the space bar until the speakers told me to stop. I pressed the power button on the

  • How do I convert à PDF file into my dairy?

    How do I convert à PDF file into my dairy?

  • SRW2008 failure in RSTP mode

    We've been integrating and verifying some RSTP-capable hardware and have discovered what appears to be a minor bug in the SRW2008 RSTP protocol implementation. We've discovered that the SRW2008 switch fails to become the root bridge in spite of havin