BipadTaranMahato / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 0 forks source link

Same image used twice #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If two slides use the same image, one of the images is missed and the 
slide order becomes incorrect. The following example would produce this 
problem:

var data = {
    'example.jpg' : { caption: 'Slide 1' } ,
    'example.jpg' : { caption: 'Slide 2' }
}

A workaround is to add a unique query string value to the image URL. For 
example:

var data = {
    'example.jpg?1' : { caption: 'Slide 11' } ,
    'example.jpg?2' : { caption: 'Slide 2' }
}

Original issue reported on code.google.com by t...@webonehundred.co.uk on 9 Oct 2008 at 1:48

GoogleCodeExporter commented 9 years ago

Original comment by aeron.gl...@gmail.com on 10 Oct 2008 at 1:32

GoogleCodeExporter commented 9 years ago
This has been fixed in REV 105 if the images are passed in as an array. If the 
images
are passed in as an obj that is outside the scope of Slideshow - the author 
preparing
the data object will have to append the ?n manually. Thanks!

Original comment by aeron.gl...@gmail.com on 19 Oct 2008 at 11:20