Of DIVs and JavaScript

20:52.06 - Tuesday 22nd July 2003   (Link to This Entry)


Spent an hour this morning thinking about how I could make a single page (to go in a small IFRAME) to show some ads and the results for the Lotto site without repeatedly META REFRESH'ing between two documents (won't somebody think of the bandwidth!). I started out trying to get JavaScript to do a document.clear and print some stuff in directly but it was no go.

Eventually I came up with this:



It works a treat. What I did in the end was create three DIV blocks, all the same size, all in the same position (the results one being generated from the db) and displayed them on-screen using JavaScript, one at a time. I even included an array to hold the page telays for the JavaScript setTimeout() commend - view the source on the inner document and laugh at my coding :)

Phone works!

20:52.12 - Tuesday 22nd July 2003   (Link to This Entry)


Got the new mobile working without problems. It was easy enough to get the numbers swapped on the mobiles after ringing Vodafone and playing 'Guess How Old My Mum Is' for a few minutes (oops!). Spent a while copying numbers from the old SIM card to the new one and left when we got to... 'N' I think.


[ 0 comments pending ]