IE7 An Error has occured in the script on this page

Posted on 2011-03-04
Last Modified: 2012-05-11
Of course the website works fine in IE8, safari, chrome, and firefox, but it's throwing an error in IE7.  I get an Object doesn't support this property or method.  line 4082, character 9.  I'm not sure which script is setting this off.  Any help is hugely appreciated.  The link is
Question by:kmurphychi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2

Expert Comment

ID: 35040401
just upgrade the person IE 7 is highly insecure now, plus it doesn't always fully support newer standards which is one thing you may be encountering ... but if you must stick with it, then see if upgrading the Java runtime on your machine will correct the issue ... goto and download the latest version and install then restart and see if the errors persist.

Author Comment

ID: 35040409
No can do.  Several internet users still use it and I need to make this site work in IE7.

Expert Comment

ID: 35040423
try upgrading the java runtime they use ...
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

LVL 75

Expert Comment

by:Michel Plungjan
ID: 35040462
I get

Error: element.attachEvent is not a function
Source File:
Line: 4024

Error: element.dispatchEvent is not a function
Source File:
Line: 4079

Error: uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: :: <TOP_LEVEL> :: line 1528"  data: no]

in FF so it may not SHOW the error but there are errors anyway

I suggest you download 1.7 from 2010 instead of the version you have now from 2008

Author Comment

ID: 35040620
Okay, I've upgraded the java on the users machine, and installed the latest version of prototype and am still seeing the error.

Expert Comment

ID: 35040972
One thing if you are using IE with let's say Prototype because I use it when you write your script you must declare all variables with var some_variable, other thing is closing ; most time that make mess with IE. Other thing if your script have }}}}  for IE use },},},}. That is general advices try to remove all non Framework Javascript  and add one by one to see what file is making problem.
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35042056
What do you mean by
}}}}  for IE use },},},}.


If you have objects, you have to make sure you do NOT have trailing commas in IE

var someObject = {
  "bla3":"Three",   <<<<<<<<< this will fail in IE
LVL 17

Accepted Solution

GreatGerm earned 500 total points
ID: 35043177
You're loading jQuery twice, once before the other libraries, and once after.  It's the loading after that is causing your conflict which leads to the error with Prototype.

11: <script type="text/javascript" src=""></script>
40: <script type="text/javascript" src=""></script>

This is the easiest option, but you do have a choice.  You can read more here:

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question