Magento Prototype.js Error In Ie
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies object expected error in javascript while calling a function of this site About Us Learn more about Stack Overflow the company Business
Object Expected Error In Javascript In Ie8
Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Object Expected Error In Internet Explorer
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Magento checkout broken in IE9 and IE8 for that matter up vote 2 down vote favorite Magento checkout broken in IE9 and IE8 for that matter When testing our checkout in Magento we ran into this strange error with IE9 when opening the following page (maybe first select a product) http://shirtsofholland.com/checkout/onepage/ SAME AS: http://www.magentocommerce.com/boards/viewthread/267307/ Any help appreciated, debugged alotta things. No solution yet magento prototypejs share|improve this question edited Mar 30 '12 at 20:03 clockworkgeek 33.5k664110 asked Mar 30 '12 at 14:46 snh_nl 5531733 Maybe you should describe the error. Linking to a site that is about to be changed will do no good for future visitors. –clockworkgeek Mar 30 '12 at 20:04 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote This is a known issue. Easiest fix as of now is to direct IE to operate in non-compatibility mode, operating at IE7. See below for a well-publicized forum thread of this issue: http://www.magentocommerce.com/boards/viewthread/211267/ The best you can do is use the .htaccess fix. It's the quickest and least-intrusive way and according to Magento Support the suggested solution. You can find the full write-up here (http://www.pauldonnellydesigns.com/blog/magento-ie9-issue-fix/) but the gist is below: Add to .htaccess: BrowserMatch MSIE best-standards-support Header set X-UA-Compatible IE=8 env=best-standards-support share|improve this answer answered Mar 30 '12 at 20:27 philwinkle 5,4851741 I was hoping this would do the trick. But nope. Doesnt fix it for me. Many thanks. The page still is garbled looking –s
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 'Object Expected' Javascript error in IE8 when using prototype.js up vote 4 down vote favorite function icPageInit() { $("icImgDiv" + icAlternate()).setOpacity(0); return true; } window.onload = icPageInit; This piece of Javascript code http://stackoverflow.com/questions/9945239/magento-checkout-broken-in-ie9-and-ie8-for-that-matter works fine in Firefox and Chrome, but fails with the error 'Object Expected' in Internet Explorer 8. IE8 says the error occurs on line 3 of the above code. Does anyone know why this is happening, and/or how to get it working? javascript internet-explorer internet-explorer-8 prototypejs object-expected share|improve this question edited Dec 27 '11 at 17:43 Rob W 205k32469461 asked Jun 4 '09 at 9:17 anonymous coward 7,38194774 Which version of Prototype? I believe the latest version http://stackoverflow.com/questions/949431/object-expected-javascript-error-in-ie8-when-using-prototype-js has IE8 compatibility fixes. –karim79 Jun 4 '09 at 9:30 The latest, 1.6.0.3 –anonymous coward Jun 4 '09 at 9:38 You need the 1.6.1 release candidate for IE8 support - it was added in RC2, current is RC3. –robertc Jun 26 '09 at 23:17 add a comment| 4 Answers 4 active oldest votes up vote 13 down vote accepted Figured it out. Turns out Internet Explorer chokes if you use anything other than "javascript" in the language attribute of the script tag. I was using version numbers appended onto javascript in the language attribute, which was causing IE not to load prototype.js. share|improve this answer answered Jun 27 '09 at 6:37 anonymous coward 7,38194774 add a comment| up vote 2 down vote Are you sure that this: $("icImgDiv" + icAlternate()) returns a reference to an element? If so, have you tried using Microsoft Script Debugger / Visual Studio to debug when and where the exception is raised? share|improve this answer answered Jun 4 '09 at 9:49 PatrikAkerstrand 32.4k55886 add a comment| up vote 2 down vote Also check that the script tag's type is "text/javascript". I had this error in IE8, and fixed it by changing the type= part of the script tag from "application/javascript" to "text/javascript". share|improve this answer answered Aug 22 '12 at 22:52 sanedisk 211 Thanks This works for Me :) –KiranSolkar Nov 14 '14 at 12:48
OUR NEW SITE Work Company Expertise Blog Careers Contact Alexander Interactive Work Company Expertise Blog Work Here Contact Us NEW NAME. SAME EXPERTISE. We changed our name! After 14 years of creating award-winning digital products & services, it’s time for a new http://www.alexanderinteractive.com/blog/2011/10/solving-the-ie-7-ie-9-magento-prototype-validation-bug/ identity that better reflects the human insights-driven, digital customer experiences we create. VISIT OUR NEW http://magebase.com/magento-articles/ie9-issues-with-magento-fix-workaround/ SITE AIAIO: Our Blog AIAIO: Our Blog The pulse and reviews of Alexander Interactive October 21st, 2011by Mike LeDoux Solving the IE 7, IE 9 Magento & Prototype Validation Bug UPDATE: Read this first please… After receiving some comments from fellow web devs [see comments between 10/26 and 11/11], I decided to integrate some of their changes. I've also included some enhancements error in via my colleague, Tom Rosario. They include a couple of updated variables (hopefully eliminating any headaches with the original ‘fieldsFilled' infinite increment issue) and a regEx that validates the the email field, once (or if) the core validation fails. For the rest of you…read the original post [below] to gain a little background/perspective and see if this suits your current issue. Feel free to challenge me and post fixes/improvements (We're all fighting the same [grunt, groan, teeth-gnash] object expected error IE-quirks-battle after all ;) I will also be in the process of trying to find inconsistencies and will update accordingly if I find them. [original post below] Hey there fellow Magento-ers, Have you been spending countless hours scouring the internet for a solution to this odd problem, in Magento, where you use the built-in Prototype validation to validate your form and it does not? And by ‘does not [validate]' I mean that in Internet Explorer 7 AND 9 (of course) it manages to ‘validate' your empty fields, when attempting to submit an empty form, and then immediately disregards this ‘validation' and just submits the form anyway…. Annoying, right? Can't seem to get around it, right? Well, have no fear! I've already ruined my own life, productivity and sanity in order to bring you this very specific and (I think) simple solution. I wrote (with the help of my pal Tom Rosario) a little unobtrusive Class-based function to handle it! Just to give you some background, and to ensure I've been as thorough as possible, I'd like to list the things I've already attempted and failed at. This includes both my own solutions and those suggested by experts on the web: Stopping the page from loading via the location and window object: simply doesn't work Changing the version of prototype: messes up all kinds of things in Magento, namely, checkout…so don
Beginner / BugfixTweetIE9 Issues With Magento - Fix / WorkaroundBy Robert Popovic on May 2, 2011 / 21 CommentsWith the release of IE9 there was a sigh of relief for the web developers. Finally Microsoft released a browser that promised adherence to W3C standards and the cessation of compatibility headaches. However, not everything is rosy.If you have a Magento site, you may have already received complaints from customers using the new IE9. The most serious issue is when you only have one payment method enabled in the checkout and this method takes the credit card details directly on your site. In this case, all the fields will stay disabled, preventing the customer from being able to complete the payment.This is reported here and here and Alan Storm has also posted about it and provided a quick workaround.The issue comes from the fact that Magento uses an older version of the Prototype JavaScript library for its DOM manipulation.The quick fix is to fool IE9 to "think" it's acting as IE8 by adding a custom meta tag to the page header like so: I personally opted for the .htaccess approach (thanks to the comment by Joe Fletcher) to avoid altering site files and believe it's slightly more elegant as it can easily be removed when the issue is fixed. For this to work, you must have the Apache Headers module enabled.Add this to the end of your .htaccess file: BrowserMatch MSIE best-standards-support Header set X-UA-Compatible IE=8 env=best-standards-support Originally published on magebase.com. Copyright © 2011 Magebase - All Rights Reserved.Article Tagscheckout fix IE9 JavaScript Prototype workaroundRelated Articles Free Magento Extension - Customer Comments In The Checkout Quick Tip: Easy pop-ups with window.js in the front end with Magento Quick Fix: Coupon Codes Used Up On Incomplete Transactions Sales > Orders Mass-action takes you back to Dashboard Tax and Magento - double and triple check Php debugging fun or 13 != 13 Quick Tip: Fixing Custom Product Attribute Showing HTM