Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


IE7 An Error has occured in the script on this page

Posted on 2011-03-04
Medium Priority
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 http://www.mrrhythmschildrensmusic.com
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 www.java.com 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 ...
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 75

Expert Comment

by:Michel Plungjan
ID: 35040462
I get

Error: element.attachEvent is not a function
Source File: http://www.mrrhythmschildrensmusic.com/js/prototype/prototype.js
Line: 4024

Error: element.dispatchEvent is not a function
Source File: http://www.mrrhythmschildrensmusic.com/js/prototype/prototype.js
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 :: http://www.mrrhythmschildrensmusic.com/js/prototype/prototype.js :: <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 2000 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="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
40: <script type="text/javascript" src="http://www.mrrhythmschildrensmusic.com/js/jquery.min.js"></script>

This is the easiest option, but you do have a choice.  You can read more here: http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

636 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