« Blog Home

§ setInterval to stay logged in

Just a setInterval example to refresh a page.

Read More ...

§ Adding events to elements

For most elements, you can just do element.onclick = function_name.  But read on...

(Much better article available at Add and Remove Elements with JavaScript (reprise) from Dustin Diaz.)

Read More ...

§ Image tabbed interface controlling hidden divs

Tabbed interface using images for rounded tabs.  Gives decent results even if javascript and/or css are off.

Read More ...

§ Simple tabbed interface

Simple tabbed interface intended to go to different pages.

Read More ...

§ Send POST request from PHP

A way to send a POST request from PHP.

Read More ...

§ Use iframe contents to change iframe to ajax div

This php file, used as an iframe's content, will attempt to load javascript to the parent to replace the iframe with a div, then ajax its content to that div.

Read More ...

§ window.onload via double delegate function

This is the way I add javascript functions to the window.onload event.  As far as I've seen, you can load endless functions this way.

Lifted straight from Robert Hahn's blog:  http://blog.roberthahn.ca/articles/2007/02/02/how-to-use-window-onload-the-right-way

Thank you!  Bless you!  What a headache.

Read More ...

§ Adjust iframe height to contents

Some javascript in an iframe's content page can adjust the height of the iframe to its content.

Read More ...

« Blog Home


“If everybody minded their own business,” said the Duchess in a hoarse growl, “the world would go round a deal faster than it does.”
Lewis Carroll, quoted in To Say Nothing of the Dog, Connie Willis