Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-31-2009, 11:18 PM   PM User | #1
fuhrysteve
New to the CF scene

 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fuhrysteve is an unknown quantity at this point
Internet Explorer jScale not working in IE

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)

Anyone know what could be wrong with it?

Last edited by fuhrysteve; 07-31-2009 at 11:18 PM.. Reason: comment on the demo
fuhrysteve is offline   Reply With Quote
Old 07-31-2009, 11:21 PM   PM User | #2
Zangeel
Regular Coder

 
Zangeel's Avatar
 
Join Date: Oct 2007
Location: public_html/
Posts: 638
Thanks: 17
Thanked 79 Times in 79 Posts
Zangeel will become famous soon enough
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.
__________________
PHP Code:
$aString is_string((string)array()) ? true false// true :D 
[/CENTER]
Zangeel is offline   Reply With Quote
Old 08-01-2009, 10:02 AM   PM User | #3
auslin
New Coder

 
Join Date: Jun 2008
Posts: 80
Thanks: 2
Thanked 16 Times in 16 Posts
auslin is an unknown quantity at this point
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.
auslin is offline   Reply With Quote
Old 08-03-2009, 12:59 PM   PM User | #4
fuhrysteve
New to the CF scene

 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fuhrysteve is an unknown quantity at this point
Quote:
Originally Posted by auslin View Post
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, IE8 & DOCTYPEs

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 (no DOCTYPE), because why not. Still doesn't work.
Here it is with the HTML4 DOCTYPE

Last edited by fuhrysteve; 08-03-2009 at 01:13 PM.. Reason: quirks mode, html4 link
fuhrysteve is offline   Reply With Quote
Old 08-03-2009, 06:19 PM   PM User | #5
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
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.
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA is offline   Reply With Quote
Old 08-04-2009, 06:22 AM   PM User | #6
auslin
New Coder

 
Join Date: Jun 2008
Posts: 80
Thanks: 2
Thanked 16 Times in 16 Posts
auslin is an unknown quantity at this point
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.
auslin is offline   Reply With Quote
Old 08-04-2009, 06:28 AM   PM User | #7
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
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.
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA is offline   Reply With Quote
Old 08-07-2009, 07:03 AM   PM User | #8
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
Ok, I believe I've found the bug and eliminated it. Just re-download the latest .js file from the script page.
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.

Last edited by WA; 08-10-2009 at 04:23 PM..
WA is offline   Reply With Quote
Old 08-10-2009, 03:03 PM   PM User | #9
fuhrysteve
New to the CF scene

 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
fuhrysteve is an unknown quantity at this point
confirmed fix

It is a confirmed fix for me, and the demo now works. Thanks a lot!
fuhrysteve is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery, jscale

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Advertisement
Log in to turn off these ads.