Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > JavaScript and CSS

JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-2007, 11:16 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Rep Power: 6
Matt is on a distinguished road
Default Counting Files with JavaScript

I have been searching all day trying to find a way to count the number of files in a server-side directory using JavaScript. I thought that, even though JavaScript is run locally, it would still have the capability of doing this kind of thing. Maybe not. I just thought I would check here to make sure. If you know how to do this, please let me know. Thanks.

Also, in a similar vein, is it possible to check the existence of an online file (not on the user's computer) using JavaScript? This is another thing I failed to figure out. Any ideas greatly appreciated.
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-28-2007, 11:50 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 5,991
Last Blog:
SAP, ERP and EDI
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

I know that javascript is client-side so it can not check server-side files. You need to use AJAX (javascript and php) together.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-29-2007, 01:12 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Rep Power: 6
Matt is on a distinguished road
Default

Ahah, thanks for the tip. Now I have something else to learn, woot!
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-31-2007, 03:14 PM
hoser2001's Avatar   
hoser2001 hoser2001 is offline
Programmer
 
Join Date: Jul 2006
Posts: 175
Rep Power: 9
hoser2001 is on a distinguished road
Default

if you find any good AJAX resources on the web post some links here if you would please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-01-2007, 07:47 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 5,991
Last Blog:
SAP, ERP and EDI
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

It wouldn't be hard to count files on a server and have the output in JavaScript. If you haven't found the solution yet and if you tell me the output I can create a quick AJAX script for you.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 08-01-2007, 12:02 PM
Matt's Avatar   
Matt Matt is offline
Learning Programmer
 
Join Date: Jan 2007
Location: Northwestern US
Posts: 47
Rep Power: 6
Matt is on a distinguished road
Default

Thanks for the offer; I appreciate it. I have recently settled for just changing a variable in my JavaScript every time I add files to the directory in question, feasible for the amount I plan to do it (not much). Learning AJAX sounds like it would be beneficial though, so I might be back here for help with that later.
__________________
http://www.mattnichols.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I read .mbm (Multi BitMap) files? moondog General Programming 7 08-07-2007 07:08 AM
location of download files and configuration problem meimei3936 ionFiles 4 06-29-2007 06:28 AM
Java:Tutorial - Importing Files John Java Tutorials 0 01-11-2007 02:00 PM
Java Help Files xXHalfSliceXx Java Help 3 11-28-2006 11:30 PM
Help Files Chan General Programming 2 10-22-2006 06:44 PM


All times are GMT -5. The time now is 05:35 PM.

Contest Stats

Xav ........ 160.68
neerlin ........ 100
satrian ........ 100
delia ........ 100
chili5 ........ 70.08
morefood2001 ........ 36.91
MeTh0Dz|Reb0rn ........ 27.15
RyanTuosto ........ 20
gamiR ........ 19.64
John ........ 14.46

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 68%

Ads