Cronus47 / slideshow

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

Internet Explorer (7) Issue #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Note: If this is a troubleshooting question, please first look in the FAQ 
(http://code.google.com/p/slideshow/wiki/FAQ), search in the Google Group 
(http://groups.google.com/group/mootools-slideshow) and / or post your question 
there! This form is only for technical issues / bugs, thank you.

What steps will reproduce the problem?
1. Build an slide show and pass the image using the data object using an object.

Like:
var data = {
  // In this case no thumbnail has been specified so Slideshow will generate the thumbnail filename from the image using the RegExp defined in the 
replace option
  '1.jpg': {
    caption: 'Keylin', 
    href: 'keylin.html'
  },
  // Here the image and thumbnail use the same filename but different directories and an example of captions with HTML
  'images/2.jpg': {
    caption: '<em>Gustavo</em>', 
    href: 'gustavo.html',
    thumbnail: 'thumbs/2.jpg'
  },
  // In this example the image and thumbnail use absolute filenames
  'http://images.mysite.com/images/3.jpg': {
    caption: 'Amalia',
    thumbnail: 'http://images.mysite.com/thumbs/2.jpg'
  }
};
var myShow = new Slideshow('my_show', data, {href: 'portfolio.html', hu: 
'images/'});

What is the expected output? What do you see instead?
Internet explorer will throws the error "Object doesn't support this property 
or method".

What version of the product are you using? On what operating system and browser?
Windows XP, Internet Explorer 7, Slideshow2r113.zip

Please provide any additional information below.
In the load function on line 300 the variable 'image' is not declared. So in 
the line 'for (image in data){' the Internet Explorer throws the error 
because the global image object can't be used for this purpose. This error is 
solved by replace the line with 'for (var image in data){'.

(note that you probably need to turn on the "Dislay a notification on any 
script error setting" to see this error)

Original issue reported on code.google.com by H.Wib...@gmail.com on 10 Mar 2009 at 3:50

GoogleCodeExporter commented 8 years ago
Fixed in SVN - preparing a new download for today. Thanks for your input!

Original comment by aeron.gl...@gmail.com on 15 Mar 2009 at 7:19