AltynbekKZ / galleriffic

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

imageData.index is null or not an object IE 7+8 #140

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Any page load which has only one image.
2.
3.

What is the expected output? What do you see instead?  Expect to see one image, 
and I do, but all versions of IE puke the following error: 
Line: 505 imageData.index is null or not an object.

What version of the product are you using? On what operating system?
2.9.2

Please provide any additional information below.

Original issue reported on code.google.com by ensign.j...@gmail.com on 29 Jul 2010 at 12:09

GoogleCodeExporter commented 8 years ago
My bad, version is 2.0.1

Original comment by ensign.j...@gmail.com on 29 Jul 2010 at 12:17

GoogleCodeExporter commented 8 years ago
i am also getting the same problem. Please suggest some solution for this. 
saurabh.gattani@gmail.com is my mail ID

Original comment by saurabh....@gmail.com on 13 Nov 2010 at 8:43

GoogleCodeExporter commented 8 years ago
Have you guys found any solution for this yet?

Original comment by sebastia...@gmail.com on 14 Mar 2011 at 11:07

GoogleCodeExporter commented 8 years ago
Hey.  This is an issue and makes your script almost unusable for internet 
explorer.  When is this going to be fixed?

Original comment by mber...@gmail.com on 21 Apr 2011 at 12:34

GoogleCodeExporter commented 8 years ago
I am having this problem - is there a solution?

Original comment by geoffmat...@gmail.com on 23 Apr 2011 at 12:27

GoogleCodeExporter commented 8 years ago
Hi to all,
no solution so far...

something weird..
http://www.twospy.com/galleriffic/example-3.html#9
is working properly in IE7+IE8
no script error.

the js file i am using is the same, but produces this 505 error in my website..
whats happening??

Original comment by alexkap...@gmail.com on 5 May 2011 at 10:37

GoogleCodeExporter commented 8 years ago
I have a solution for you.

Line 282 change function between //edit comments

// Initalizes the image preloader
preloadInit: function() {
  // edit. Cgheck to see if defined
  if (!this.currentImage)
    return this;
  // end edit
  if (this.preloadAhead == 0) return this;
  this.preloadStartIndex = this.currentImage.index;
  var nextIndex = this.getNextIndex(this.preloadStartIndex);
  return this.preloadRecursive(this.preloadStartIndex, nextIndex);
},

Line 501 change function between //edit comments

// This function is garaunteed to be called anytime a gallery slide changes.
// @param {Object} imageData An object holding the image metadata of the image 
to navigate to.
gotoImage: function(imageData) {
  // edit. check to see if defined
  if (!imageData)
    return this;
  // end edit
  var index = imageData.index;
  if (this.onSlideChange)
  this.onSlideChange(this.currentImage.index, index);               
  this.currentImage = imageData;
  this.preloadRelocate(index);              
  this.refresh();
  return this;
},

Original comment by st...@publiczone.co.uk on 12 Aug 2011 at 3:22

GoogleCodeExporter commented 8 years ago
Thanks for the solution. Worked for me!!

Original comment by bsa...@gmail.com on 6 Oct 2011 at 8:49

GoogleCodeExporter commented 8 years ago
Worked for me also. Thanks!

Original comment by m...@mainstreampc.com on 21 Oct 2011 at 1:48

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by brennoln...@gmail.com on 28 Feb 2012 at 11:45

GoogleCodeExporter commented 8 years ago
Superb!!! Solution suggested by <<<#7 st...@publiczone.co.uk>>> worked!!!!

Original comment by aasthatu...@gmail.com on 6 Nov 2013 at 6:56

GoogleCodeExporter commented 8 years ago
Amazing thank you!

st...@publiczone.co.uk fix worked for me

Original comment by maxnor...@atlasagency.com.au on 3 Jul 2015 at 4:42