PDA

View Full Version : "Undefined" printing on screen with Flexi pics



royce
01-23-2011, 10:04 PM
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

jscheuer1
01-23-2011, 10:27 PM
Make sure that here, in your version of here (from the code block on the demo page):


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:


variableslide[0]=['ball.gif', '', '']

Do not simply remove them entirely. Don't do this:


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.

royce
01-24-2011, 11:43 AM
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!

jscheuer1
01-24-2011, 01:15 PM
This is an array:


['ball.gif', '', '']

where the 2nd and 3rd items are defined as empty strings.

This array:


['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.