Results 1 to 4 of 4

Thread: "Undefined" printing on screen with Flexi pics

  1. #1
    Join Date
    Aug 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default "Undefined" printing on screen with Flexi pics

    1) Script Title: FLexi Slide Show

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...flexislide.htm


    3) Describe problem: "UNDEFINED" printing on screen with all pics

    Hi! THANK YOU! for a great site!
    I set up this Flexi SLide show because it can maintain the original sizes of my pics. Very convenient.

    I am using FrontPage 2003. Everything works great but I get the word 'Undefined" printing on the screen attached to the bottom/right of every pic.
    I am running 6 pics, NO captions and NO links.
    THis one is over my head. Can't figure out what is 'undefined' in the code.

    Also, is there any way to introduce a fade between pics? I have looked at teh 'nsslideshow' but it doesn't maintain original pic size like the flexi.

    Thanks again for all your good work!
    Royce

  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

    Make sure that here, in your version of here (from the code block on the demo page):

    Code:
    variableslide[0]=['ball.gif', '', '']
    variableslide[1]=['spaceship.gif', 'http://www.space.com', 'Has aliens landed on earth? You decide.']
    variableslide[2]=['cake.gif', '', '']
    that all fields are represented. If you have nothing for a field, leave it blank, as in:

    Code:
    variableslide[0]=['ball.gif', '', '']
    Do not simply remove them entirely. Don't do this:

    Code:
    variableslide[0]=['ball.gif']
    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Why, that is EXACTLY what I did! Thanks for the reply. Just for my own info, what did I upset in the code by removing those parameters?

    Thanks again!

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

    This is an array:

    Code:
    ['ball.gif', '', '']
    where the 2nd and 3rd items are defined as empty strings.

    This array:

    Code:
    ['ball.gif']
    has no 2nd and 3rd items. They're undefined, which is type converted to the string - "undefined", so that's what you get.
    - 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
  •