|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
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 |
| Sponsored Links |
|
|
|
|||||
|
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! |
|
|||||
|
Ahah, thanks for the tip. Now I have something else to learn, woot!
__________________
http://www.mattnichols.net |
|
|||||
|
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! |
| Sponsored Links |
|
|
|
|||||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| 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 |
Goal: 100,000 Posts
Complete: 68%