Archives

Archive for June, 2006

Attach multiple files Gmail style

I found some code to mimic this functionality, it works well..
// Gmail File Attachment Clone
// (c) 2005, Gavin Lynch
 
//number of forms currently in < span id="content" > tree
var form_count = 0;
 
//add file attachment form and associated elements
function add()
{
//create new < img > element
var new_img = document.createElement(‘img’);
//give element an id
new_img.setAttribute(‘id’, ‘child_attachment_img_’ + form_count);
//set image source
new_img.setAttribute(’src’,‘images/paperClip.gif’);
//set image […]

Something Eternal

I’m convinced something is eternal,
0 + 0 = 0
A zero represents absolute nothingness. A 1 can represent something ( anything ).
If there was ever a time when there was absolute nothingness ( a 0 on the left hand side ) Then I’m certain there would still be nothing. ( a 0 on the right hand […]

Does anyone know how Gmail do it?

How does Gmail keep the subject and email preview to one line?
When the window is resized the text gets cut off…

Creating .doc or .pdf on the fly

Hello all you helpful people,
Has anyone here managed to create either a word document or a pdf dynamically from PHP?
Only using PHP 5, without having a library installed…
A hello world sort of script would be most helpful.
I am wanting to have a standard web form that will spit out a pdf on the server, It’s […]

Good Practice Knowledge Base

I’ve been working on a system recently which will be a place to submit good practice ideas for the faculty of ICT.
It is about to be launched to ICT Staff (Sorry non-staff members, it may be released to the wider community if it seen as a benefit) - and is currently placed within […]

A bug in Firefox

Yes, it was a sad day when I found that IE was displaying my web page so much nicer than my beloved Firefox..
I didn’t jump to conclusions - I defended Firefox as long as I could, but in the end I found:
That there is an issue with how firefox displays it floats..
If you have a […]

A better menu

I took up a challenge presented in a web usability lecture to improve the existing swinburne menu.
At the moment,
The display is reliant on javascript to acheive it’s rollover effects,
There is no html text so the text is not scalable at all,
It doesn’t use css for it’s display,
The images aren’t background-images
Looking at the images, they are […]