PDA

View Full Version : jScale not working in IE


fuhrysteve
07-31-2009, 11:18 PM
I can't seem to get jScale working in internet explorer (using IE8) no matter what I do. I haven't seen anything about it not being cross-browser compatible, so I assumed it works in IE.

Works great in firefox though. Click here for a demo (click on the image once you get there) (http://steve.thefuhry.com/firefoxFlicker.php?ie)

Anyone know what could be wrong with it?

Zangeel
07-31-2009, 11:21 PM
IE thinks there's an invalid argument on line 12 and 19 in jquery-min.js, that's the error it's giving for me anyway.

auslin
08-01-2009, 10:02 AM
When I test it live with IE8, I get the same error message as Zangeel does. However, when I test it locally, it works perfectly in all browsers, including IE8. I am locally using the latest version of the main jQuery file (jquery-1.3.2.min.js). Perhaps just check you are using an up-to-date version.

The malformed doctype, and the absence of the type attribute (type="text/javascript") in the script tags are worth fixing, but evidently not the cause of the problem here.

fuhrysteve
08-03-2009, 12:59 PM
When I test it live with IE8, I get the same error message as Zangeel does. However, when I test it locally, it works perfectly in all browsers, including IE8. I am locally using the latest version of the main jQuery file (jquery-1.3.2.min.js). Perhaps just check you are using an up-to-date version.

The malformed doctype, and the absence of the type attribute (type="text/javascript") in the script tags are worth fixing, but evidently not the cause of the problem here.

I'm using jquery 1.3.2, and the doctype is actually the standard HTML5 doctype, which will force older browsers into standards mode. IE8 supports the HTML5 HTML5 DOCTYPE (http://en.wikipedia.org/wiki/Document_Type_Declaration#HTML_5_DTDless_Doctype), IE8 & DOCTYPEs (http://en.wikipedia.org/wiki/IE8#Version_targeting_and_backwards_compatibility)

Also, one of the HTML5 things is type="text/javascript" is assumed by default with the <script> tag, so eliminating it is valid markup. But, I added it just for fun and there is no change in behavior.

Here it is in quirks mode (http://steve.thefuhry.com/firefoxFlicker.php?quirks) (no DOCTYPE), because why not. Still doesn't work.
Here it is with the HTML4 DOCTYPE (http://steve.thefuhry.com/firefoxFlicker.php?html4)

WA
08-03-2009, 06:19 PM
The "ls" parameter on the JK demo page works fine in both IE8 and IE7, though I do see the error on the page you posted. I'll take a look at the problem, and update you in this thread if I find the issue.

auslin
08-04-2009, 06:22 AM
fuhrysteve, you are right about the HTML5 / doctype issue. I must admit I haven't looked much at HTML5 yet.

I had another look at the problem locally, this time using the 'live' image. Previously, I was just using an assortment of my own images, and getting no errors. Now I see that the error is thrown with non-landscape formatted images, i.e. anything in square format or portrait format will throw the error with the 'ls' parameter here. It happens with the first call to jScale, before the click code.

Landscape format images work with 'ls'. And it seems to work fine with all image formats, with the 'w' and 'h' parameters.

WA
08-04-2009, 06:28 AM
It'll probably be a couple of days or so before I can look at the problem, but I'll definitely post an update once I do.

WA
08-07-2009, 07:03 AM
Ok, I believe I've found the bug and eliminated it. Just re-download the latest .js file from the script page.

fuhrysteve
08-10-2009, 03:03 PM
It is a confirmed fix for me, and the demo now works. Thanks a lot!