We help IT Professionals succeed at work.

IE7 & IE6 - Done but errors on page

Luv2Muff
Luv2Muff asked
on
628 Views
Last Modified: 2012-05-09
http://www.camrascansecurity.co.uk/

Above site works fine with IE8 with no reported errors.

IE7 and IE6 both report JS errors, how can I cure these?

Ta, Luv2.
Comment
Watch Question

ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
I do get the error also n IE8:
$jQ=jQuery.noConflict();
Message:  'jQuery' is  undefined
in file superfish,js

and a second error in mediabox.js with an unsuported method for addEvent().

and a third error  that Mediabox is not defined.

Author

Commented:
I have made some changes, please can you take another look.

Author

Commented:
Why do I get the  'jQuery' is  undefined messge?
ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
Change the order of the .js files.
Put superfish.js after flowplayer...js

ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
OK, you need not to change the order. The flowplayer.js does not have jQuery also not defined.

Where is your base jQuery js file?

David S.Consultant & Challenge Subduer
CERTIFIED EXPERT
Top Expert 2009

Commented:
> Where is your base jQuery js file?

I was looking for it too and found that it's the first <script> element:

<script type="text/javascript" src="min/?g=js"></script>
ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
You are right. But still the element jQuery is not defined.
Therefore I added the base jQuery file and voila! jQuery is defined:


<link rel="shortcut icon" href="tl_files_2/images/system/favicon.ico" />
<script src="http://cdn.jquerytools.org/1.2.3/full/jquery.tools.min.js"></script>
<script type="text/javascript" src="plugins/jquery/superfish/js/superfish.js"></script>
<script type="text/javascript" src="system/modules/ch_flowplayer/html/flowplayer/flowplayer-3.1.4.min.js"></script>


Of course take local copy of jquery.js is better.

Author

Commented:
Thanks very much for your, much appreciated.

I have stopped the base jQuery file being minified, seems like I am getting there.

Now get a "Expected identifier, string or number error".

Any ideas?
ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
Can you please remove this js also:

<script type="text/javascript" src="min/?g=js"></script>


Author

Commented:
Hi,

Yep, I am now calling all JS directly and not minifying
Systems architect
CERTIFIED EXPERT
Top Expert 2006
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Perfect, thats cured it!!

A difficult one this, I really appreciate your help.
ZvonkoSystems architect
CERTIFIED EXPERT
Top Expert 2006

Commented:
You are welcome.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.