views:

350

answers:

5

Hi folks,

i'm trying to get a JQuery function running in IE7. In Firefox and Safari its working fine. Now i tried to debug, and even the simplest function is not working in IE, so i guess its a problem of the whole call.

<script src="js/jquery.js" type="application/javascript"></script>
<script type="application/javascript">
    $(document).ready(function(){
     alert('start in IE');
     fmmovement();
});
         </script>

The whole script website is http://project.formplusmedia.de/redesign

is there any trick to get this function running in the booring Internet Explorer? Hope someone can help me, thanks in advanced.

regards

h-man24

+5  A: 

Hi, in your script block change your type value to read:

<script type="text/javascript">

should fix it :)

Wayne Austin
+1; faster than me with the same answer ;)
Matt Sach
wow, 30 minutes and five answers. thanks a lot
h-man24
A: 

Hai

hav you try to make it like a singlefile?

script.js and load it in you header (<script src="js/script.js" type="application/javascript">) after jquery.js file.

good lock

NeoNmaN
+1  A: 

I think the problem lies with the mime type you gave for Javascript.

you wrote application/javascript. The only one that i know that works on all browsers is text/javascript.

i had experienced this similarly before. i wrote text/javscript and it didn't work as well.

thephpdeveloper
+1  A: 

Internet Explorer does not recognize the application/javascript content-type. Use the old text/javascript content-type instead.

David Dorward
A: 

IE7 does not understand "application/javascript" as a script type. You will have to use "text/javascript" for IE 6 and 7.

Matt Sach