DigitalBurp!

A web developer's blog

Archive for the ‘IE6 issues’ Category

HTML link color problem solved

Posted by Vineet on May 14, 2009

Problem: Some browsers show links in the default color in spite of being styled in CSS. On hover the CSS styling works.

Problem faced in: Google Chrome and IE6. No problem in FF

Solution:It is pretty simple by the way. There are two ways to resolve this ..

  1. Dont use a:link ..

    ie. instead of

    #menu a:link { .. }

    use,

    #menu a {..}

  2. And the other way is declare the colors for all the states of the link

    #menu a:link { …}
    #menu a:visited {..}
    #menu a:hover {.. }
    #menu a:active {…}

    Remember the order. Its very important .. (Mnemonic – LoVe HAte)

Many thanks to: A certain CSS freak at webmasterworld forums

Posted in CSS, IE6 issues | Tagged: , , , , , | Leave a Comment »

HTML forms problem in IE6 solved

Posted by Vineet on May 12, 2009

Ah relieved!… finally my website works on IE6. A big problem solved…

Problem:
Login and signup script not working in IE6. (works fine in FF & Crome).
On clicking the submit button, nothing happens, not even an error msg.

What was wrong?
The problem was that I was using images as submit buttons in the HTML forms and not checking form submission as per IE6’s liking!

Solution: HTML allows us to use images as submit buttons

In FF and Chrome (and may be other browsers as well which I dont use), if we want to check if submit button is clicked and run a specific code, then this serves the purpose

if(isset($_POST['submit'])) {
//code to be executed
}

But IE passes the co-ordinates of click as submit_x and submit_y instead of just submit=parameter..

so to make sure that the form functions in IE, change the above code to

if(isset($_POST['submit_y']) || isset($_POST['submit_x'])) {

}

This solved the problem in my case

Doing some more G tells me that even if we check just one co-ordinate its fine.
But now I have already changed it, and I am too tired to change it back again to something else… so I’ll let that be.. :)

Thanks to: Webmasterworld forums, Google

Posted in IE6 issues | Tagged: , , , , | 2 Comments »