Archive for Browser

a:hover not working on Chorm

Solution:

  • Open Chrome Settings
  • Select “Show Advanced Settings”
  • Scroll down to “System”
  • un-check “Use hardware acceleration when available”
Advertisements

Leave a Comment

IE7 – scroll bars disappeared for the DIV with a Table

I have a table tag within a div. The div has style attribute “overflow” set to “auto”. In IE6 and FF this works OK and I get scroll bars. In IE7 there are no scroll bars.

Solution:

set table width 99% in the div

 

Leave a Comment

position:relative and overflow in Internet Explorer

I’ve been working on this layout that had a relatively positioned element inside a container with overflow. Everything looked good until I switched to IE7 and noticed that my positioned element remained fixed.

To solve this, I added position:relative to the container. This seems to work for both IE6 and 7.

Leave a Comment

Speed Firefox Up

1.Type “about:config” into the address bar and hit return. Scroll down and look for the following entries:

network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:

Set “network.http.pipelining” to “true”

Set “network.http.proxy.pipelining” to “true”

Set “network.http.pipelining.maxrequests” to some number like 30. This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.

If you’re using a broadband connection you’ll load pages MUCH faster now!

Leave a Comment

Page not found error in a jsp

1) Put the following code in web.xml:

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error/error.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/error/http400.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error/http404.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/error/http403.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error/http500.jsp</location>
</error-page>

2) Create above jsp files. Usually to be safe you should make error pages that are larger then 512 bytes. The threshold varies per HTTP status code. You can look at what your thresholds are currently set to. In IE 5 and greater the settings are stored in the registry under[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\ErrorThresholds]

Err Size(bytes)
400 512
403 256
404 512
405 256
406 512
408 512
409 512
410 256
500 512
501 512
505 512

Leave a Comment

How to detact IE7?

for javascript:

var isIE7 = /*@cc_on!@*/false && ( parseInt( navigator.userAgent.toLowerCase().match( /msie (\d+)/ )[1] ) >= 7 );

for styesheet:

<!–[if IE 7]>
<link rel=”stylesheet” href=”/css/ie7.css” type=”text/css”>
<![endif]–>

Leave a Comment

Popup winodw on IE7 – location bar

For the security reason, IE7 always shows the address bar on pop-up window.

For the in-house system,  it can be  solved by adding the system to the Trusted Sites in each of the users’ browsers

Leave a Comment

Older Posts »