Siliconhell Forum  

Go Back   Siliconhell Forum > General Chit Chat > Stuff > Gadgets and the Internet

Notices

Gadgets and the Internet Want to talk about gadgets, software, neat widgets or cool stuff on the web? Then post it in here.

Reply
 
Thread Tools Display Modes
Old 01-12-2006, 11:29 AM   #1 (permalink)
Moderator
Points: 8,865, Level: 63 Points: 8,865, Level: 63 Points: 8,865, Level: 63
Activity: 100% Activity: 100% Activity: 100%
 
Nutty_ZA's Avatar
 
Join Date: May 2004
Join Date: May 2004
Location: South Africa
Posts: 1,499
My Mood:
Credits: 7,122
Thanks: 1
Thanked 8 Times in 7 Posts
Nutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really nice
Send a message via Skype™ to Nutty_ZA
Default Javascript Help

Hope someone here can help me...
I am in the process of developing a website for somebody....
One of the requirements is that Photo's can be uploaded to the server...
I want to restrict users to 100 K image sizes... I have written A javascript function that utilises the windows File System Object (see below)... this works but obviously this has a number of problems... Firstly most Internet browsers will in general block this script unless activex downloads are enabled in the browser, secondly, unless the user is running windows, this wont work either... what is the best way to do this????
Ta,

Clive.

function check_file()
{
var path=document.form.photo.value;
var fso = new ActiveXObject("Scripting.FileSystemObject");
fileObj = fso.GetFile(path);
if(fileObj.size>'100')
{
alert ("File is too big (Max 100kb). Please reduce image size before uploading");
return 0;
}
}

To err is human. To ARRR is pirate.
View Nutty_ZA's Photo Album  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Wong this Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Bookmark to soc.ialize.us!Bookmark to AskJeeves!Stumble this Post!
Reply With Quote
Old 01-12-2006, 02:01 PM   #2 (permalink)
Moderator
Points: 14,240, Level: 77 Points: 14,240, Level: 77 Points: 14,240, Level: 77
Activity: 100% Activity: 100% Activity: 100%
 
TheGuru's Avatar
 
Join Date: Feb 2004
Join Date: Feb 2004
Location: Liverpool UK
Posts: 2,201
My Mood:
Credits: 6,742
Donation Award 
Thanks: 12
Thanked 7 Times in 7 Posts
TheGuru is a jewel in the roughTheGuru is a jewel in the roughTheGuru is a jewel in the rough
Default

Have you considered using PHP Gallery software :?: This one is great http://gallery.menalto.com/ and I think it plugs into other stuff such a PHPBB, POSTNUKE and CMS stuff ;-)

TheGuru
View TheGuru's Photo Album  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Wong this Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Bookmark to soc.ialize.us!Bookmark to AskJeeves!Stumble this Post!
Reply With Quote
Old 08-12-2006, 10:05 AM   #3 (permalink)
Moderator
Points: 8,865, Level: 63 Points: 8,865, Level: 63 Points: 8,865, Level: 63
Activity: 100% Activity: 100% Activity: 100%
 
Nutty_ZA's Avatar
 
Join Date: May 2004
Join Date: May 2004
Location: South Africa
Posts: 1,499
My Mood:
Credits: 7,122
Thanks: 1
Thanked 8 Times in 7 Posts
Nutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really nice
Send a message via Skype™ to Nutty_ZA
Default

Hi thanks for the reply... sorry I haven't replied sooner...

I can't use the php stuff as the site is running on a windows server platform, using ASP and MS SQL Server 2000...

BUT I have googled and there are ASP scripts available that will probably do the same thing I'm looking for... will try some out and If I don't come right, will whinge and moan and ask for help again


Thanks

Clive.

To err is human. To ARRR is pirate.
View Nutty_ZA's Photo Album  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Wong this Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Bookmark to soc.ialize.us!Bookmark to AskJeeves!Stumble this Post!
Reply With Quote
Old 30-01-2007, 09:27 AM   #4 (permalink)
siliconhell
Guest
 
siliconhell's Avatar
 
Posts: n/a
Credits: 0 [Check]
Default

Did you find a suitable script :?:
View siliconhell's Photo Album  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Wong this Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Bookmark to soc.ialize.us!Bookmark to AskJeeves!Stumble this Post!
Reply With Quote
Sponsored links
Old 07-02-2007, 07:33 AM   #5 (permalink)
Moderator
Points: 8,865, Level: 63 Points: 8,865, Level: 63 Points: 8,865, Level: 63
Activity: 100% Activity: 100% Activity: 100%
 
Nutty_ZA's Avatar
 
Join Date: May 2004
Join Date: May 2004
Location: South Africa
Posts: 1,499
My Mood:
Credits: 7,122
Thanks: 1
Thanked 8 Times in 7 Posts
Nutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really niceNutty_ZA is just really nice
Send a message via Skype™ to Nutty_ZA
Default

Yes, I did thanks...
Managed to get something from the Web Hosting Service provider

To err is human. To ARRR is pirate.
View Nutty_ZA's Photo Album  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookSpurl this Post!Reddit! Wong this Post!Stumble this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Live Bookmark this Post!Bookmark to soc.ialize.us!Bookmark to AskJeeves!Stumble this Post!
Reply With Quote
Sponsored links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 10:10 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Copyright ©2000-2008Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23