PHP __autoload function

When PHP encounters a class that hasn’t been defined yet, you can use __autoload to iautomatically add them instead of including masses of included at the top of your files. e.g. [code lang=”php”] function __autoload($class_name) { require_once $class_name . ‘.php’; Read more…

By Andrew Odendaal, ago

IE6 on Vista?

I find myself constantly fighting the microsoft battle of making things work in their browsers (thanks guys). On one of my machines I have Vista installed and needed to test a newly created site that apparently had some issues under Read more…

By Andrew Odendaal, ago

Guillotine-Bug? Bug

Yes, it’s called a Guillotine-Bug and it’s yet another bug IE users get to look forward too 😛 So how does it work? Basically, the hasLayout messes around and elements become invisible and visible according to random things. Rather silly, Read more…

By Andrew Odendaal, ago

What is Eb in firebug?

Gmail produces the following error/warning in firebug. Eb is not defined function Bb(a){if(a[sb]&&a[sb](daa)){var…ents)};f.x2b=c;f.B2b=b;f.y2b=a;return f} I initially started seeing this while while on clients’ websites, but can now say it’s a gmail thing. So don’t stress.. 😉

By Andrew Odendaal, ago

Need more than hover?

I had a hover effect on an html input element but also needed to have an active state. The css was like this for the inputs in mention: [code lang=”css”].contactformdiv input:hover, .contactformdiv textarea:hover { background-color:#fff; }[/code] It was simple, I Read more…

By Andrew Odendaal, ago