Results 1 to 4 of 4

Thread: Ultimate Fadin Slideshow - building an array from a text file

  1. #1
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Ultimate Fadin Slideshow - building an array from a text file

    Hello all.

    Some time ago I came across a response that someone had given on how to create the arrays for UFS from a list in a text file. I didn't need it then and now that I do, I can't find it. Does someone remember what that code was?

    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The only thing close to that I remember is:

    http://www.dynamicdrive.com/forums/s...ad.php?t=13488

    This doesn't quite do what you say, but could be adapted to actually make the array, which you could then cut and paste to wherever it's required.

    It's also possible to grab files another way. If all of your image filenames are the same except for prepended or appended sequential numbers, and you know how many there are, javascript itself can 'fetch' (actually identify and use - amounts to the same thing) them from a folder.

    Then there are always server side methods like PHP or asp which require no knowledge of the filenames, only that the server be enabled to use the PHP, asp or whatever.

    AJAX and/or XML (as well as the server side methods already mentioned) probably would be able to be used to import filenames or an entire array from a text file, I'm just not familiar with how to do that.

    If you have the actual array in a text file, it could simply be added as an external script (tag) to the page which would use it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Jim Weinberg (05-06-2008)

  4. #3
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    John.

    Sorry it took so long to get back to you, I was out of town. Thanks for the suggestions. I've decided to try it a different way. I've posted a thread to ask about building the array dynamically from the contents of a folder. That would be a more reasonable (although maybe not doable) approach.

    Thanks again.
    Jim

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    See:

    http://www.dynamicdrive.com/forums/s...ad.php?t=29378

    But this is really better done with Swiss Army slide show, due to how the preloading is handled and how Swiss Army can accommodate varying sizes of images:

    http://www.dynamicdrive.com/dynamici...army/index.htm

    Swiss Army can also be adapted (as mentioned in the above linked thread) to use asp or PHP to grab the images.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •