Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Swiss Army script & a Linux server

  1. #1
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Swiss Army script & a Linux server

    1) Script Title: Swiss Army Slideshow

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/swissarmy/

    3) Describe problem:

    I can't seem to get this slide show to work on a Linux server.

    Workin version on Windows server: http://webshack.com.au/test/activities.htm

    Exact copy on Linux: http://winmaleeccc.com.au/bob/activities.htm

    Obviously the pages aren't complete with all graphics.

    Have i managed to stuff it somewhere I can't find or is Linux causing the grief?

    thanks,

    Grant

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Perhaps it's because the images aren't on the linux server?
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ha ha

    A bit too obvious , but no - they are definately there.

    Windows link to a pic: http://webshack.com.au/test/images/activities/1.jpg

    Linux link to a pic: http://winmaleeccc.com.au/bob/images/activities/1.jpg

    If there was no pic to be referenced - wouldn't it show one of those boxes with a red cross in it?

    So I'm still stumped!

    Grant

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    If there was no pic to be referenced - wouldn't it show one of those boxes with a red cross in it?
    not always. That is how IE handles a broken image, but not all browsers handle them in such a manner.

    secondly, why are you using 2 different hosts? if its the same picture it can be viewed in both linux and windows OS.

  5. #5
    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

    There is no script in the Linux host's served source code (view the Linux page and use your browsers 'view source'). You are using what look to be FP extensions to include code. These are proprietary to those servers that support them. I doubt any Linux server would.

    And, though this has nothing to do with this particular problem, the Swiss Army script will often just hang if any of its images are missing.
    - John
    ________________________

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

  6. #6
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Could be those dang includes

    Hey!

    I've always hosted sites on windows server, but recently had a bit of issues with Plesk updates gone bad so I've recently set up a Linux server & migrated a few sites over. That's when I noticed the problem!

    No, definately no Front Page anythings in the script, but I have referenced the 2 parts of the code via html includes.

    Didn't think of that issue though - the windows server seems to be more forgiving with capital letters in href's than Linux.

    So, probably is just not referencing the script because of that! Duh!

    I'll have a look & see if it's the issue!

    Thanks,

    Grant

  7. #7
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ok, not the includes

    So it wasn't a capital letter with the includes - I forgot to add a .htaccess file that enabled the use of SSI's. (Only just learnt i needed to do that for SSI)

    So, now the includes are being referenced, but it get's stuck on the first pic, not trying to progress to download the next clip.

    Grant

  8. #8
    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

    Quote Originally Posted by me
    . . . the Swiss Army script will often just hang if any of its images are missing
    This image:

    Code:
    http://winmaleeccc.com.au/bob/images/activities/2.jpg
    is missing from the Linux server. There could be other problems.
    - John
    ________________________

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

  9. #9
    Join Date
    Oct 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Getting closer!

    Thanks for the help!

    The picture was there - but it was 2.JPG (not 2.jpg). So I renamed it & reloaded it & the script is almost working perfectly.

    It gets stuck on the last slide (14.jpg) - have i just left a comma in or something simple like that in the script?

    Slightly off topic, but are Linux servers case sensitive with file names etc?

    Thanks again fro the tips!

    Grant

  10. #10
    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

    Almost all servers are case sensitive. According to your source code, 14.jpg isn't the last image:

    Code:
    var slides=[]; //FIRST SLIDESHOW
    //configure the below images and descriptions to your own. 
    slides[0] = ["images/activities/1.jpg", "red"];
    slides[1] = ["images/activities/2.jpg", "dog"];
    slides[2] = ["images/activities/3.jpg", "loves"];
    slides[3] = ["images/activities/4.jpg", "Standing Woman"];
    slides[4] = ["images/activities/5.jpg", "John, Mary and Jesus"];
    slides[5] = ["images/activities/6.jpg", "John, Mary and Jesus"];
    slides[6] = ["images/activities/7.jpg", "John, Mary and Jesus"];
    slides[7] = ["images/activities/8.jpg", "John, Mary and Jesus"];
    slides[8] = ["images/activities/9.jpg", "John, Mary and Jesus"];
    slides[9] = ["images/activities/10.jpg", "John, Mary and Jesus"];
    slides[10] = ["images/activities/11.jpg", "John, Mary and Jesus"];
    slides[11] = ["images/activities/12.jpg", "John, Mary and Jesus"];
    slides[12] = ["images/activities/13.jpg", "John, Mary and Jesus"];
    slides[13] = ["images/activities/14.jpg", "John, Mary and Jesus"];
    slides[14] = ["images/activities/15.jpg", "John, Mary and Jesus"];
    slides[15] = ["images/activities/16.jpg", "John, Mary and Jesus"];
    slides[16] = ["images/activities/17.jpg", "John, Mary and Jesus"];
    However, it is the last image available on the Linux server. If you remove the red entries from the source code that should take care of it.

    A word of advice though, you should optimize your images. They are of a much larger byte size than is necessary.
    - 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
  •