Shorthand Properties = Lazy Programming, IMHO falcon1986 is my hero...

W3Schools is teh awesomeness

Posted July 21, 2009 in Blog by Tieson

It is either really sad, or really stupid (and maybe both) that I spent most of one afternoon Googling like crazy to try and find a good partial-page-refresh script example, and the place I wound up actually finding the most useful tutorial was the last place I thought to look: w3schools.com

I've benefited greatly from the HTML and CSS tutorials w3schools has, but for some odd reason it never crossed my mind that they might just have what I needed. I had even remarked to someone else that they also had AJAX tutorials, but it never crossed my mind to check there first.

D'oh.

Anyway, I did find a damn fine tutorial, and it even included working code! All I had to do was change a few values in the JavaScript file, point it at a PHP script I had built, and viola! Partial-page-refresh! Wooooo.

The best part is that this script seems to work on every major browser (except, of course, IE6 and lower) (EDIT: It seems a png fix script I was trying out was what was keeping the partial-page-refresh from working. It does actually work on IE6), and (even better!) behaves almost identically in every browser I can test.

Those that are curious can visit my portfolio site to see my implementation, and visit the source page to see what the original looked like.

Cheers!

Add Comment:

Remember: If you can't say anything nice, don't say it at all... :D

Updated: July 23, 2009 ↑Back to top

Shorthand Properties = Lazy Programming, IMHO falcon1986 is my hero...

[...] if you really want to understand something, the best way is to try and explain it to someone else. That forces you to sort it out in your mind. And the more slow and dim-witted your pupil, the more you have to break things down into more and more simple ideas. And that's really the essence of programming. By the time you've sorted out a complicated idea into little steps that even a stupid machine can deal with, you've learned something about it yourself.
[ Dirk Gently's Holistic Detective Agency (1987) ]

~ Douglas Adams (1952 - 2001)