Topic awaiting preservation: Dynamic width of element (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: :morF |
posted 04-25-2005 15:20
OK... keeping in mind that I'm not that familiar with JavaScript itself, but I can program, so if you explain it I'll probably pick it up ... |
Nervous Wreck (II) Inmate From: |
posted 04-25-2005 15:27
Something like this might work...obviously you would use your own data. Or maybe you will need to call the settimeout function for this. I can't remember. |
Maniac (V) Inmate From: Cell 666 |
posted 04-25-2005 20:13
This might help: http://slayeroffice.com/code/progressBar/ |
Bipolar (III) Inmate From: London |
posted 04-26-2005 14:29
I would use this to change the width of an element: code: document.getElementById('yourElementId').style.width = '55px';
code: document.getElementById('yourElementId').firstChild.nodeValue = 'Your new text here';
|
Paranoid (IV) Inmate From: France |
posted 04-26-2005 15:18
IMHO, the important thing is the server side language. Does it allow you to load parts of the file whenever you want and retrieve the size of the file before its completely uploaded. If it does, you can output few lines of javascript to update an HTML element when you're not loading the file on the server. |