Lesson 5- Retrieve File List From Web Directory

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Lesson 5- Retrieve File List From Web Directory

Post by LCNeil » Wed Sep 04, 2013 5:09 pm

Hi Everyone,

Another great question was asked during the Q & A session in regards to how a file list can be retrieved from a web directory. I have created a lesson on one way that this can be achieved-

http://lessons.runrev.com/s/lessons/m/2 ... -directory

This example retrieves the source of the web directory and then extracts the required data rom this

If you have any question regarding this lesson, please feel free to ask them here

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Fri Sep 06, 2013 4:56 pm

Hi Neil,

I was person who asked this question on the webinar. thanks for creating an example of this. I have tried this example with your url directory and works perfectly, when i replace it with my own url which has a list of video files I get:- [DIR]
[VID]


etc, just a list of [VID] & [IMG].

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by LCNeil » Mon Sep 09, 2013 9:55 am

Hi dbailey,

I'm glad my example was of some assistance.

From you reply Im not sure if your managed to get the example to work with your URL? If you did not, please supply the URL in question and I will try to adjust the example to work with it.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Tue Sep 10, 2013 9:51 am

My account is not allowing me to post links. How do I send private message to you with the details?.

Klaus
Posts: 9614
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Lesson 5- Retrieve File List From Web Directory

Post by Klaus » Tue Sep 10, 2013 12:28 pm

Write the link that way, that the forum does not recognize it as a link:
w w w. w h a t e v e r. c o m 8)

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Tue Sep 10, 2013 1:22 pm

ok url IP:

185 14 185 57 /video/

I hope that helps! :D

Klaus
Posts: 9614
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Lesson 5- Retrieve File List From Web Directory

Post by Klaus » Tue Sep 10, 2013 1:32 pm

OK, here the clickable link: http://185.14.185.57/video/

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by LCNeil » Tue Sep 10, 2013 1:56 pm

Hi dbailey

Please find attached the file list stack that has been amended for your web server. Only a few changes were made to the button script to reflect the slight differences of your web server compared to an on-rev server.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
--
Attachments
FileListServerdbiley.livecode.zip
(1.74 KiB) Downloaded 144 times

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Wed Sep 11, 2013 10:30 am

Thanks Neil, now working perfectly! :D what caused the issue?, would be good to understand for future reference.

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Wed Sep 11, 2013 12:22 pm

Here's my simple program to play a video file, but the video won't play, any ideas?:-
Attachments
VideoPlayback.zip
VideoWebPlayer
(1.9 KiB) Downloaded 134 times

Klaus
Posts: 9614
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Lesson 5- Retrieve File List From Web Directory

Post by Klaus » Wed Sep 11, 2013 12:45 pm

Hi dbailey,

well, it worked after:
1. I added a "on mouseup" and "end mouseup" to the script of your listfield!
2. I removed the SPACE at the beginning of the single line in your listfield: " TestVid1.mov" -> "TestVid1.mov"

No further comment... 8)


Best

Klaus

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Wed Sep 11, 2013 1:43 pm

oops! this is what sleep deprivation does to you :oops:

Thanks Klaus!

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Wed Sep 11, 2013 2:13 pm

I have now rectified the issues, but still when video is selected it doesn't play, I have removed the Single line in the listfield as the app should load the list of videos from the url.

dbailey
Posts: 23
Joined: Fri Sep 06, 2013 4:47 pm

Re: Lesson 5- Retrieve File List From Web Directory

Post by dbailey » Wed Sep 11, 2013 8:16 pm

dbailey wrote:I have now rectified the issues, but still when video is selected it doesn't play, I have removed the Single line in the listfield as the app should load the list of videos from the url.

I have now fixed this and have it working correctly :mrgreen: Thanks for all your help everyone!.

Post Reply

Return to “Summer School 2013”