tags:

views:

463

answers:

5

Hello I am using jqzoom and it is working fine on all browser except safari there is an error "TypeError: Result of expression 'smallimagedata.pos' [undefined] is not an object."

Please if somebody can help the page is http://www.legzskin.com/products.php?product=CHARMED when u mouseover the 3 images it should appear zoom window over the flash on the left

+1  A: 

This appears to be a problem with the smallimagedata properties not being set when the Loader class is used. Here's a workaround that seems to correct the problem.

Update the SmallImage.loadImage() method:

this.loadimage = function() {
  this.node.src = image[0].src;
};

To this:

this.loadimage = function() {
  this.node.src = image[0].src;
  if (typeof smallimagedata.top === "undefined") {
    this.node.onload();
  }
};
Russ Back
This works, for anyone who is interested. I had this issue in Chrome for PC.
jeerose
A: 

Fantastic this should be in the new release of JQzoom. I've wasted 5 hours before I found this solution! I will mail the author!

Roel
A: 

Same here Roel! Thanks for the solution :)

Vince
A: 

saved my day solved a similar problem i had with JQzoom and safari

thanks for sharing!

A: 

worked for me, thanks

tony