Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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; 08-01-2009 at 12:18 AM. Reason: comment on the demo

  • #2
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    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]

  • #3
    New Coder
    Join Date
    Jun 2008
    Posts
    81
    Thanks
    2
    Thanked 16 Times in 16 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 02:13 PM. Reason: quirks mode, html4 link

  • #5
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    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.

  • #6
    New Coder
    Join Date
    Jun 2008
    Posts
    81
    Thanks
    2
    Thanked 16 Times in 16 Posts
    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.

  • #7
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    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.

  • #8
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Ok, I believe I've found the bug and eliminated it. Just re-download the latest .js file from the script page.
    Last edited by WA; 08-10-2009 at 05:23 PM.
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.

  • #9
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    confirmed fix

    It is a confirmed fix for me, and the demo now works. Thanks a lot!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •