It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

File size using JavaScript possible?

File size using JavaScript possible?

Postby rachjm on Tue Apr 15, 2008 12:58 am

Hi all, please excuse my ignorance. I'm one of those people who knows nothing about JavaScript beyond how to copy/paste other people's code. ;)

On my website I have a large number of PDF's available for people to download, and I'd like for my users to know the size of the file before they start downloading. Previously I've been using SSI's to do this with reasonable success, but for some reason my javascript (and even some of my CSS) kicks the bucket when I've got SSI's on a page.

So my question is, can an 'fsize'-like result be achieved using Javascript? Alternatively, does anyone have any ideas why my SSI's are affecting the rest of my page like this?

Thanks in advance. :)
Image
User avatar
rachjm
250+ Club
 
Posts: 363
Joined: Wed Mar 26, 2008 10:12 pm
Location: New Zealand

Who is online

Users browsing this forum: No registered users and 7 guests

cron