Solved

IE7 An Error has occured in the script on this page

Posted on 2011-03-04
8
367 Views
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
0
Comment
Question by:kmurphychi
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 9

Expert Comment

by:TBK-Consulting
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.
0
 

Author Comment

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

Expert Comment

by:TBK-Consulting
ID: 35040423
try upgrading the java runtime they use ...
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

http://www.prototypejs.org/download
0
 

Author Comment

by:kmurphychi
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.
0
 
LVL 4

Expert Comment

by:te-edu
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.
0
 
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 = {
  "bla1":"One",
  "bla2":"Two",
  "bla3":"Three",   <<<<<<<<< this will fail in IE
}
0
 
LVL 17

Accepted Solution

by:
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="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
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

749 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