JS error on motools-core.js

I get this error when I view my page on ie 8, it's ok on FF and IE9:

Message: Invalid argument.
Line: 1
Char: 56604
Code: 0
URI: http://www.shibly.net/web/media/system/js/mootools-core.js

Attached is a copy of the code at hand from ch 56430 to 56632





This one really got me stuck!

f=Array.from(f).map(function(k,j){if(!h[j]){return""}return(typeOf(k)=="number")?h[j].replace("@",Math.round(k)):k}).join(" ")}else{if(f==String(Number(f))){f=Math.round(f)}}this.style[g]=f;return this}

Open in new window

LVL 10
aboo_sAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
Sorry, try this one :
slideshow.push.min.txt
0
 
aboo_sAuthor Commented:
My page URL is:

www.shibly.net/web
0
 
leakim971PluritechnicianCommented:
Try to set the width of the images
If it don't work replace slideshow.push.min.js by the one attached.
slideshow.push.min.txt
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
leakim971PluritechnicianCommented:
don't forget to rename it with the right extension txt -> js
0
 
aboo_sAuthor Commented:
Thanks leakim971,
The slideshow module has the option of setting width and height of images from backend side
and did not change a thing!
As for the slideshow.push.min.js , I still am getting the same error!
0
 
aboo_sAuthor Commented:
It works like charm!

I want to thank you very much, that the first thing!
The second I want to ask what the problem was? if it is not trouble to explain!
0
 
aboo_sAuthor Commented:
I accidentally pressed this button I want to cancel it!
0
 
aboo_sAuthor Commented:
Thanks!
0
 
leakim971PluritechnicianCommented:
The error was on : this.style[g]=f
Where :
g equal to : left
f was NaN (not a number) that's why we get an error

This part of code is called by b[1].set("styles",{left:"auto",right:"auto"}).setStyle(this.direction,d); in slideshow.push.min.js
We've :
var d=this.width-((b[1].width!=null)?b[1].width:this.width); // initialty var d=this.width-b[1].width;
b[1].set("styles",{left:"auto",right:"auto"}).setStyle(this.direction,d);

On IE b[1].width is null (undefined)
b is the array of images (span with the background as image)

The code i more readable here : http://code.google.com/p/slideshow/source/browse/trunk/mootools/slideshow.push.js?r=148
The lines 51 and 52
var width = this.width - images[1].width;

replaced by :

var width = this.width - ((images[1].width!=null)?images[1].width:this.width)?;

Open in new window

0
 
aboo_sAuthor Commented:
Thanks for your fast response, you've been much help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.