Margin differences IE6 vs Firefox 2

If you create a page using the code below you will see that
the left margin is completely different in IE 6 and Firefox.
Do I have a coding error or do I need to set the margin and
then if IE is used set it again with a different value?
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#sub-section {
width: 195px;
padding: 3px 2px 0 0;
background-color:#CCCCCC;
display: block;
#sub-section ul {
width: 165px;
margin-left: 10px;
#sub-section ul li {
font-size: 12px;
padding-bottom: 5px;
list-style: none;
#sub-section ul li ul li {
list-style-image:url(/common/images/pointer.gif);
list-style-position: inside;
margin-left: 0px;
#sub-section a, #sub-section a:link {
color: #000066;
text-decoration: none;
font-weight: bold;
#sub-section a.active, #sub-section a:hover {
color: #6666CC;
text-decoration: underline;
background-image: url(/common/images/pointer.gif) no-repeat
left center;
-->
</style>
</head>
<body>
<div id="sub-section">
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2
</a>
<ul>
<li><a href="#">Sub Link1</a></li>
<li><a href="#">Sub Link 2</a></li>
<li><a href="#">Sub Link 3
</a>
<ul>
<li><a href="#">Sub Sub Link 1
</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6 </a></li>
</ul>
</div>
</body>
</html>

DC_Eric escreveu:
> If you create a page using the code below you will see
that the left margin is
> completely different in IE 6 and Firefox.
> Do I have a coding error or do I need to set the margin
and then if IE is used
> set it again with a different value?
>
> <!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">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <title>Untitled Document</title>
> <style type="text/css">
> <!--
> #sub-section {
> width: 195px;
> padding: 3px 2px 0 0;
> background-color:#CCCCCC;
> display: block;
> }
>
> #sub-section ul {
> width: 165px;
> margin-left: 10px;
> }
>
> #sub-section ul li {
> font-size: 12px;
> padding-bottom: 5px;
> list-style: none;
> }
>
> #sub-section ul li ul li {
> list-style-image:url(/common/images/pointer.gif);
> list-style-position: inside;
> margin-left: 0px;
> }
>
> #sub-section a, #sub-section a:link {
> color: #000066;
> text-decoration: none;
> font-weight: bold;
> }
>
> #sub-section a.active, #sub-section a:hover {
> color: #6666CC;
> text-decoration: underline;
> background-image: url(/common/images/pointer.gif)
no-repeat left center;
> }
> -->
> </style>
> </head>
>
> <body>
> <div id="sub-section">
>
>
<a href="#">Link 1</a></li>
>
<a href="#">Link 2
> </a>
>
>
<a href="#">Sub Link1</a></li>
>
<a href="#">Sub Link 2</a></li>
>
<a href="#">Sub Link 3
> </a>
>
>
<a href="#">Sub Sub Link 1 </a></li>
>
> </li>
>
> </li>
>
<a href="#">Link 3</a></li>
>
<a href="#">Link 4</a></li>
>
<a href="#">Link 5</a></li>
>
<a href="#">Link 6 </a></li>
>
> </div>
> </body>
> </html>
>
http://www.webcredible.co.uk/user-friendly-resources/css/
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
Você deve, sempre, consultar uma segunda opinião!
Deixe todos saberem se esta informação foi-lhe
útil.
You must hear, always, one second opinion! In all cases.
Let the people know if this info was useful for you!

Similar Messages

  • Margin difference (height) in Firefox and IE 9

    Hi all,
    I know this problem is really ancient but just can't find a fix.
    Please look here:  http://www.tridentsolutions.co.nz/howick-opt/
    When the margin is set for Firefox Safari and Chrome, the banner images are too close to the horizontal menu but looks perfect in IE9
    Can't fix it, some expert advise please.

    That's why we have IE conditional comments.
    <!--[if IE]>-->
    <style type="text/css">
    /**put conditional styles for IE here**/
    </style>
    <!--<![endif]-->
    Add it just above your document's </head> tag.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • ADF Faces: inlineStyle differences on IE6 anf Firefox

    Hello,
    for my project i created a <af:tree>:
    <af:tree var="treeData" binding="#{ObjectTree.tree}" id="objectTree" inlineStyle="height: 230px; width: 200px; border-color: black; border-style: solid; border-width: thin; overflow: auto">
    <f:facet name="nodeStamp">
    <af:selectBooleanCheckbox value="#{treeData.selected}" text="#{treeData.text}" autoSubmit="true" valueChangeListener="#{ObjectTree.changeObject}"/>
    </f:facet>
    </af:tree>
    Now i've got some problems with the inlineStyle in IE 6 and Fireox 1.0.4
    In the IE i get a thin black border around the tree. When i expand the nodes of the tree the scrollbars appear, and i can scroll my tree around.
    In Mozilla Firefox there is no border around the tree. Instead i see a vertical black line above the tree, about 20px high. When i expand the tree nodes no scrollbars appear, so as if the "overflow:auto" has no effekt. Side effect is that all other component around the tree are pushed aside because the tree changes its size. Its definitly bigger than the width and height i set in the inlineStyle.
    Does this problem lie within Firefox or ADF Faces? Is there some workaround for it?
    Thanks for help,
    Dirk

    /repost

  • Adobe flash issues with both IE6 and Firefox

    I just installed adobe flash 9 on my win2k computer. When I
    try to go to www.yourminis.com I get two different results, in IE6
    I start to get a web page, but then IE freezes. In Firefox, I get a
    big blue quicktime Q the blinks a bit, then a question mark
    superimposes over the Q and nothing else happens.
    I also cannot view this page under Firefox in Freespire
    Linux, but there, it tells me I don't have a new enough version of
    Flash Player, but I downloaded and installed the newest version
    available for Linux, and I tried both the normal automatic install
    and the manual install (which was a pain in the butt because
    Freespire has no admin log in, and you have to do all your copying
    of files from a command line using the sudo command...)
    Why is this happening? I even have an issue with flash and
    the yahoo home page, in IE6 it works fine, but in Firefox, where
    you normally see the yahoo logo at the top of the page, instead you
    see the big blue Quicktime Q and then the question mark, and the
    yahoo logo never comes up (this isn't a big issue, I don't need to
    see the animated yahoo logo, but since Firefox is doing the same
    thing on www.yourminis as it is with the Yahoo logo animation, I
    thought it might be significant)
    I even disabled ALL file types in Quicktime's settings except
    Quicktime Movies format, because QT won';t LET me disable that one.
    Still having the same problems.
    Oh, and all this is happening under Administrative User, with
    full priveledges in Win2k, so don't tell me I need to be admin or
    something like that.

    This should be the <b>about:crashes</b> page.
    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter
    You can check for problems with current Flash plugin versions and try these:
    *disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    *disable protected mode in Flash 11.3 and later
    *disable hardware acceleration in the Flash plugin
    *http://kb.mozillazine.org/Flash#Troubleshooting
    *http://helpx.adobe.com/flash-player/kb/flash-player-113-crash-mozilla.html

  • Accordian PanelTab margin in IE6

    Greetings learned ones.
    I am currently working on a site, and since I've recently
    acquired web premium CS3 and am using dreamweaver, I thought I'd
    use the Spry Accordian widget.
    Of course, my rendition looks great in FF, but IE6 throws
    margin or something between the accordianpaneltab's
    You can see my dilemna currently at
    http://rfk.ipapilot.org/new/menu.html
    I know I've added some styling effects, but even with the
    vanilla CSS this still had small spacing between those tabs.
    Any help would be greatly appreciated.
    -Trevor

    The accordion is triggering a bug in IE that seems to happen
    within tables. The bug is triggered by programatically placing a
    class name on an element. Even if that classname has no style rule
    defined. We worked around it in the latest version of the Accordion
    which you can find here:
    http://labs.adobe.com/technologies/spry/widgets/accordion/SpryAccordion.js
    Save that file into your SpryAssets folder of your site, over
    the one that Dreamweaver placed into your site. Let us know if that
    fixes things for you.
    --== Kin ==--

  • Locked down computer (means I cannot see network settings) allows IE6 but Firefox always times out.

    The tech guys have locked down the computer and I cannot see the network settings and have no access to the registry. Firefox always times out so I am forced to use IE6. How to set up Firefox to get round this?

    Presumably, you're talking about your company's administrator. It probably wouldn't be wise to try and circumvent their network policy. It might get you fired even.
    A better idea would be to show them how insecure IE6 is - ''it's no longer supported by Microsoft for example and exposes their network to all kinds of attacks'' - and that it's in their own interests to use a secure browser like Firefox 4.0
    Maybe they'll even promote you!

  • Accordion difference in IE & Firefox (issue when collapsing)

    Hello everyone,
    I need some help. If you go to http://www.uandes.cl/area-humanidades/la-facultad.html you will see an accordion working almost fine. If you click in the tab that says "HISTORIA DE LA FACULTAD", the content opens, so you can scroll down and go until the end of that content, but then if you click "PLAN DE ESTUDIOS", in Firefox your screen stays in the same position. It doesn't take the user to the beginning of that tab's content. That happens in Firefox but not in Internet Explorer 6, 7 and 8. It also happens in Safari.
    Is there a way I can solve this issue? Thanks in advance and sorry about my english.

    Frank,
    this is sample code:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document>
          <af:form>
            <af:panelGroupLayout layout="vertical">
              <af:panelGroupLayout layout="horizontal"
                                   inlineStyle="padding: 25px; background-color:#5555FF;">
                <af:commandButton text="commandButton 1"/>
                <af:commandButton text="commandButton 2"/>
                <af:commandButton text="commandButton 3"/>
                <f:facet name="separator">
                  <af:spacer width="10" height="10"/>
                </f:facet>
              </af:panelGroupLayout>
              <af:panelGroupLayout layout="horizontal"
                                   inlineStyle="padding:25px; background-color:#FF5555;">
                <af:commandButton text="commandButton 4"/>
              </af:panelGroupLayout>
            </af:panelGroupLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>Matt,
    that would significantly increase number of components on may page plus setting padding on each af:panelGroupLayout (layout: vertical) inside af:panelGroupLayout (layout: horizontal)...
    There are many ways to fix this, but that’s not the point... Point is that it should work same way in IE7 and Firefox...
    Regards,
    s o v i e t

  • Spry submenu not showing up on IE6/IE7/firefox

    The Horizontalmenu Spry is working good when I create it as a
    blank html page. But when I created spryheader as a template, the
    submenu is not showing up on hover on IE and firefox. Wonder if its
    a z-index problem.
    Using spry 1.6.1
    Did anybody face the same problem and found a solution?
    Working URL (simple html page) : www.ciitech.net/next1/
    Templated page :
    http://www.ciitech.net/next2/Templates/ciiheaderfooter.dwt

    Maybe you tweaked something, but it shows up in Firefox 3 and
    IE7 for me. In IE7 though, the menus don't drop straight down, but
    I think that might have to do with the widths you have set for you
    menu items, but not certain.

  • Flash Player locks up FireFox and IE6

    When I go to
    http://www.scifi.com/superhero,
    my browser locks up. I have flash player 9 installed, and there is
    a movie of some sort that tries to load, but it just locks up my
    browser (IE6 AND FireFox) to the point where I have to kill it.
    I have FlexBuilder2 installed on my machine as well, if that
    makes any difference.

    I also try to go to this site and nothing plays:
    http://powerlineblog.com/archives/016745.php

  • Firefox ClassNotFoundException (works in IE6)

    Hi all,
    I've recently rebuilt a java application with about ten classes in the default package - rather than buried in a package three layers down.
    Now, instead of running in IE6 and Firefox as it did before, it only works in IE.
    Anyone got any ideas?
    This is how I'm invoking the applet:
    <applet id="Mapplet" name="Mapplet" width="100%" height="100%"
    codebase=""
    code="nav/wdd/avlmap/AVLMapClient.class"
    archive="http://navbox/mapserver/AVLMapClient.jar"
    mayscript="mayscript" alt=""
    >
    Your browser is unable to load this applet - please contact tech support.
    </applet>
    Trying to run this under Firefox I get:
    Java Plug-in 1.5.0_07
    Using JRE version 1.5.0_07 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\SB
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@1006d75
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@17a29a1, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@17a29a1
    basic: Current classloader cache size: 2
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1a626f, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@16fa474
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    network: Connecting http://navbox/AVLMapClient.class with proxy=HTTP @ /101.113.129.51:8080
    network: Connecting http://navbox/AVLMapClient.class with proxy=HTTP @ /101.113.129.51:8080
    load: class AVLMapClient not found.
    java.lang.ClassNotFoundException: AVLMapClient
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    basic: Exception: java.lang.ClassNotFoundException: AVLMapClient
    Under IE I get:
    Java Plug-in 1.5.0_07
    Using JRE version 1.5.0_07 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\SB
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\SB\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@6e3d60, refcount=1
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@50d89c
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    network: Connecting http://navbox/mapserver/AVLMapClient.jar with proxy=HTTP @ /101.113.129.51
    basic: Loading http://navbox/mapserver/AVLMapClient.jar from cache
    basic: No certificate info, this is unsigned JAR file.
    liveconnect: Invoking method: public void AVLMapClient.Repaint()
    liveconnect: Invoking method: public void AVLMapClient.Repaint()
    liveconnect: Invoking method: public void AVLMapClient.Repaint()

    Note: applet tag at start of message above is old one for when I had the three-layers-deep package. Now code attribute is:
    code="AVLMapClient.class"
    not:
    code="nav/wdd/avlmap/AVLMapClient.class"

  • Bug or Feature? Different behavior after 1.6.0_02 in both Firefox & IE6/IE7

    Greetings,
    I have been testing a small java applet for a phpbb mod, named Proxy Revealer
    Basically the java applet "phones home" (connects back to the http host serving the applet) via a Socket connection to establish a direct connection, then basically writes a custom HttpRequest string with some parameters passed to it from the php script's HTML, so it looks like:
    GET /probe.php?mode=java&ip=initial_external_ip&extra=random_unique_identifier&local=LAN_IP&vendor=java_vendor&version=num&user_agent=browser
    which would allow the php script on the host/site to verify the client's IP address, and compare it with the initial IP that requested the page which loaded the applet, as well as Internal LAN IP if user is behind a router/NAT
    This allows the php script to unmask & log proxied users for security purposes, in case of spamming/trolling on the forum, in an attempt to thwart the average spammers/trollers at the least.
    The applet and the code works as desired and in various browsers, but only on JRE 1.6.0_02 and earlier releases...
    It seems ever since JRE 1.6.0_03, this has stopped working when the end-user has HTTP Proxy configured in the browser.
    I tested latest JRE as of date, ver 1.6.0_07, with IE6, IE7 & Firefox 2.0.0.15 and 2.0.0.16 and it still exhibits this odd behavior.
    This is what appears in Java Console when I try to visit the page serving this applet with an HTTP proxy configured in browser:
    java.security.AccessControlException: access denied (java.net.SocketPermission xxx.xxx.xxx.xxx:80 connect,resolve)
    xxx.xxx.xxx.xxx is the resolved IP of the server host that is hosting the applet, so basically the same origin....
    If I disable the HTTP Proxy configured in the browser, the applet connects back fine. So it only happens when HTTP Proxy is configured in browser..
    Is this a new feature or a bug??
    Here's the java applet code:
    // httpRequestor.java
    // Copyright (c) MMVI TerraFrost
    // Licensed under the GPL.
    import java.applet.*;
    import java.net.*;
    public class HttpRequestor extends Applet
         public void start()
              try
                   String javaVendor = System.getProperty("java.vendor");
                   String javaVersion = javaVendor.startsWith("Microsoft") ? System.getProperty("java.version") : System.getProperty("java.vm.version");
                   Socket sock = new Socket(getParameter("domain"), Integer.parseInt(getParameter("port")));
                   String path = getParameter("path")+"&local="+sock.getLocalAddress().getHostAddress()+
                        "&vendor="+URLEncoder.encode(javaVendor, "UTF-8")+
                        "&version="+URLEncoder.encode(javaVersion, "UTF-8")+
                        "&user_agent="+URLEncoder.encode(getParameter("user_agent"), "UTF-8");
                   String httpRequest = "GET "+path+" HTTP/1.0\r\nHost: "+getParameter("domain")+"\r\n\r\n";
                   sock.getOutputStream().write(httpRequest.getBytes());
                   sock.getInputStream();
              catch (Exception e)
                   e.printStackTrace();
    }and the relative portion from the probe.php script loading it:
              $java_url = $path_name . "probe.$phpEx?mode=java&ip=$client_ip&extra=$sid,$key";
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
      <title></title>
    </head>
    <body>
    <applet width="0" height="0" code="HttpRequestor.class" codebase=".">
      <param name="domain" value="<?php echo $server_name; ?>">
      <param name="port" value="<?php echo $board_config['server_port']; ?>">
      <param name="path" value="<?php echo $java_url; ?>">
      <param name="user_agent" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS['HTTP_USER_AGENT']); ?>">
    </applet>
    </body>
    </html>A barebone/proof-of-concept demo (also employing a couple other tricks to detect CGI proxies in the same page):
    http://www.frostjedi.com/terra/scripts/ip_unmasker.php?mode=utf16
    Another similar java applet code (with demo) is found towards the bottom of this page:
    http://www.burghardt.pl/2008/05/web-browser-anonymity-threats/
    Both of these demos work with JRE versions 1.6.0_02 and older, but fail to work (in both IE & FF) with JRE 1.0.6_03 and newer - up to 1.0.6_07 which is latest as of date
    Thanks,
    Jasmine

    Thought I might elaborate on the details of the bug report I made, perhaps someone needs to add to it or needs to understand the problem better.
    Description:
    Unsigned applets cannot connect back via Socket to the originating host (from codebase) when a Proxy is configured in user's browser (IE7/IE6//FF3/FF2 tested) and when origin host's IP address doesn't resolve back to the same hostname.
    Example:
    www.hostingsite.com resolves to 1.2.3.4
    but, 1.2.3.4 resolves back to 4.3.2.1-somewebhost.com
    Affects JRE versions 1.6.0_03 - 1.6.0_07
    This wasn't a problem in 1.6.0_02 or prior versions according to my tests.
    An AccessControlException is thrown about SocketPermission:
    I believe the security manager is doing unnecessary lookups, even after the resolved IP matches to the IP of the origin host. This is apparent from the fairly long delay before the ACE is thrown about SocketPermission.
    Steps to Reproduce:
    1. Configure HTTP Proxy in browser (IE/Firefox)
    2. visit an html page that embeds a simple applet that tries to connect back to origin host whose hostname resolves to an IP address but the IP address resolves to a different hostname. (example code below)
    Expected Result:
    Applet should be able to connect back to originating host via Socket connection or write (post) to a URL on origin host (which requires a new Socket connection back)
    Actual Result:
    Socket sock = new Socket(Proxy.NO_PROXY);
    InetSocketAddress sockAddress = new InetSocketAddress(getCodeBase().getHost(), port);
    sock.connect(sockAddress);The above snippet of code would throw an ACE about SocketPermission when applet tries to initiate sock.connect
    Moreover,
    URL urlRequest = new URL(this.getCodeBase()+path);
    HttpURLConnection conn = (HttpURLConnection)urlRequest.openConnection(Proxy.NO_PROXY);
    conn.getOutputStream();would also throw an ACE about SocketPermission when the applet tries to initiate Socket connection for the conn.getOutputStream() call.
    Error Message(s):
    java.security.AccessControlException: access denied (java.net.SocketPermission x.x.x.x:80 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at HttpRequestor.start(HttpRequestor.java:16)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    x.x.x.x being the resolved IP address of the origin server
    Source code for an executable test case:
    import java.applet.*;
    import java.net.*;
    public class HttpRequestor extends Applet
         public void start()
              try
                   Socket sock = new Socket(Proxy.NO_PROXY);
                   InetSocketAddress sockAddress = new InetSocketAddress(getCodeBase().getHost(), Integer.parseInt(getParameter("port")));
                   sock.connect(sockAddress);
                   String path = getParameter("path")+"&local="+sock.getLocalAddress().getHostAddress();
                   String httpRequest = "GET "+path+" HTTP/1.0\r\nHost: "+getCodeBase().getHost()+"\r\n\r\n";
                   sock.getOutputStream().write(httpRequest.getBytes());
                   sock.getInputStream();
              catch (Exception e)
                   e.printStackTrace();
    Workaround:
    The only possible workaround I could find is if the the applet can be loaded from IP-address in the codebase URL to avoid the unnecessary lookups by the SecurityManger.
    This, however, maybe very difficult to use in most virtual-hosting environment, and IE browsers older than IE7 would most likely throw an error like "Class not found".
    Example, if www.hostingsite.com resolves to 1.2.3.4
    and http://1.2.3.4 goes to http://www.hostingsite.com
    Change the codebase URL in the html embedding the applet, from:
    "http://www.hostingsite.com/classes"
    to:
    "http://1.2.3.4/classes"
    I also forgot to mention in my bug report that this would also be quite a big problem in server farms, where the origin-hostname resolves to multiple IP addressses and when those IP addresses do not all resolve back to the same hostname.

  • [solved] difference between firefox official extension and from repo

    hi to everybody,
    which are the differences between installing firefox addons from our repo and from official firefox site ?
    thanks
    Last edited by nTia89 (2011-09-07 09:18:39)

    The repo packages install addons to /usr/lib/firefox-*/extensions/, which is globally accessible. Since this location requires root privilege to write to, these addons cannot be updated through the in-browser firefox addon update.
    Installing addons from the official addons site the usual way, however, installs the addons to your current profile directory, eg ~/.mozilla/fireofx/xxxxxxxx.default/extensions/, and as usual can be updated through firefox addon update. Addons installed this way can only be accessed when using this profile.

  • Google Charts are not getting displayed in Firefox ver 4.0.1

    Google Visualisation charts are not getting displayed in Fire Fox latest version. Please have a look at the below url.

    Thanks for the link. That one doesn't use the Flash player, so the problem must be somewhere else.
    If you use NoScript or other security add-ons, make sure google.com or code.google.com is allowed to run scripts.
    Could you try disabling graphics acceleration and see whether that makes any difference?
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the General mini-tab, uncheck the box for "Use hardware acceleration when available"
    This will take effect after you restart Firefox.

  • Firefox and Utilities Won't Open

    Suddenly, Firefox stopped opening. When I try opening Utilities like Activity Monitor to see what's up and Disk Utility to repair permissions, they refused to open too. Other programs - Word, Safari, etc., open no problem. I also noticed that my GPU, which had been running @ 77 centigrade, was up to 85. Other temps:
    CPU Core 1: 67
    CPU core 2: 67
    IStat shows User CPU at 100%, with Safari, my only open app, at 100.5. When I had Word open, it was at the same time also showing 97%. My computer thinks it's a high school football coach: "You gotta give two hundred percent!"
    I ran rebuild on Disk Warrior from the CD, which found one error, but it made no difference.
    Things I've changed recently are:
    4 days ago, old 22" Cinema Display went dead. I was running two, and the other was on its way out, so I replaced with a pair of 23" Samsungs. No problems with that initially, but when I see higher temps with the GPU, I wonder if there's a connection.
    This afternoon, I tried installing SafariStand, which first required installing SIMBL. When I started having problems, I backtracked and deleted SIMBL from the input managers, but it hasn't helped.
    Final difference is that Firefox installed an automatic update. With the Firefox problem, I tried trashing the plist - no help - then the app itself and downloaded a fresh copy - also no help.
    I've got my system and apps on one hard drive and my data on the other.
    Thanks for any thoughts.

    Try each step in order, checking as to whether the issue is fixed before moving on.
    1. Safe boot (hold shift at the chime until the spinning gear) and run your preferred housekeeping utility; Onyx, Cocktail or whatever.
    2. Delete plist files for affected apps.
    3. Reset PRAM. Hold Cmd-Alt-P-R at the chime until it chimes again. Keep holding it down for a total of 4 chimes.
    4. Reset NVRAM. Hold down Cmd-Alt-O-F at the chime until you get an open firmware prompt. Type:
    reset-nvram
    set-defaults
    reset-all
    It will reboot.

  • Windows XP3 Firefox works for one use, not another.

    Using windows XP SP3 and latest Firefox. On normal user Fire fox suddenly will not load. Click on Icon and it seems to load but does not appear on desktop. Looking in Windows Task Manager it looks like ti is running. Never appears open on desktop
    On user "Admin", it boots and works normally. BOTH Admin and other user are admin security levels.
    I have downloaded and installed the latest update but no change.
    Thunderbird works normally on all users. There are only two user names on this machine. My problem is with another machine. I have compared some settings from this one to the faulty on and found no noticable differences.

    Occasionally the Firefox window will get off screen. Here are three different
    approaches to getting that window into view. One of them should work!<BR><BR>
    '''''Firefox Window "off screen" — Arrow Key Method'''''<BR><BR>
    If you know that Firefox is off to a particular side, you can use the arrow keys
    to move it back on screen. You only need to move it far enough to be able to
    click the title bar and then you can drag it the rest of the way.<BR><BR>
    Make the Firefox tile active on the task bar and press this key combination
    to start moving the window:<BR><BR>
    Alt+Spacebar > m<BR><BR>
    (To clarify, that's Alt+Spacebar to open the window control menu, then the
    letter m to start moving the window.)<BR><BR>
    Press the arrow key for the direction you want to move the window, e.g., press
    the left arrow key to move the window left. Press the Enter key to complete the move.<BR><BR>
    '''''Firefox Window "off screen" — Maximize + New Window Script Method'''''<BR><BR>
    If Firefox is nowhere to be found but you know it's out there, try this method.
    Make the Firefox tile active on the task bar and press this key combination to
    maximize the window:<BR><BR>
    Alt+Spacebar > x<BR><BR>
    (To clarify, that's Alt+Spacebar to open the window control menu, then the letter
    x to maximize the window.)<BR><BR>
    If that works, try this:<BR><BR>
    (1) Copy the following line of code to the clipboard (it's all one line...):<BR><BR>
    newwin=window.open(window.location.href, "_blank", <BR>
    "width=640,height=480,menubar,toolbar,personalbar");<BR>
    newwin.moveTo(0,0);<BR><BR>
    (2) In the maximized window, press Ctrl+Shift+k to open the web console.<BR><BR>
    (3) Press Ctrl+v to paste the line of code next to the caret (») then press Enter to run it.
    A new copy of that page should open in a window positioned at the top left of the screen.<BR><BR>
    (4) Switch back to the maximized window and close it first, before doing anything
    in the new window.<BR><BR>
    '''''Firefox Window "off screen" — Remove Settings File'''''<BR><BR>
    If you can't move or maximize Firefox, you can rename or delete the settings
    file that stores the last window position.<BR><BR>
    (1) Open your currently active Firefox settings folder (AKA Firefox profile folder).
    From the Start menu (Run box or search box), paste this into the search box and press Enter:
    <BR><BR>%APPDATA%\Mozilla\Firefox\Profiles<BR><BR>
    This should open a window showing one or more Firefox profile folders. If you have multiple
    folders, look for the most recent. Click into your profile folder.<BR><BR>
    (2) If Firefox is still running, right-click it on the Task Bar and Close all Windows. <BR><BR>
    (3) Wait a few moments for Firefox to finish updating files in your profile folder, then rename
    '''''localstore.rdf''''' to something else, like localstore-bad.rdf or localstore.old.
    Alternately, you can delete the file.<BR><BR>
    (4) You're done with your profile folder and you can restart Firefox now.

Maybe you are looking for

  • Camera Raw in PSE 6

    I'd appreciate help.  I have PSE 6 and was editing RAW files using Camera RAW just fine until I purchased a new desktop last week.  I'm running VISTA now.  I re-installed PSE 6 but when I try to load my RAW images, I get  the message "no valid files

  • Color Correction for movie theaters

    I am currently editing a commercial that will be played in a couple of local movie theaters before the movie previews. I am in no way a professional and I'm kind of a Color newbie. I am working on a Mid 2009 15" MacBook Pro with HDV 1080i60 footage.

  • Play a movie in full screen mode

    Hi evrybody, Plzz could anybody help me with codes to play a movie in full screen mode. thanking u in anticipation.

  • GetStylesheets().add("css_file") has no effect for Scene in JFXPanel

    I'm using Netbeans 7 to build a JavaFx application that has a Swing UI with a JFXPanel. No matter what I try, I can't get the scene to use my stylesheet. The content of my CSS file is correct. E.g.: .my-component { -fx-border-color: black; -fx-border

  • HELP!!! DBMS_UTILITY.FORMAT_CALL_STACK DOES NOT WORK THROUGH DBLINK

    Hi, If I call procedure through DB_LINK, FORMAT_CALL_STACK return nothing. Can I somehow to define the name of procedure, that call me?