1

I have a problem with a site I am working on, available here.

The javascript on the site works as inteded when browsed with firefox. In IE7, however, the javascript does not even get executed.

As I am new to javascript I suspect that I am probably doing an obvious mistake somewhere in the code.

Any help is appreciated!

2
  • 2
    You really need to provide bit more info here... for what it's worth, yes, jQuery does (and should) work on modern IE versions. If you see any javascript problems notes by IE (alas, IE js debug support sucks), try to check those first. Commented Apr 16, 2009 at 18:13
  • IE js debug support does suck as much as most people think see: notetodogself.blogspot.com/2008/08/debug-javascript-in-ie.html The problem is that its MUCH harder to get working than downloading firebug in 15 seconds Commented Apr 16, 2009 at 18:17

2 Answers 2

9

here is your problem:

$.get("ajax.php", {case: caseNr, picturenr: picNr, pictureinfo: true}, function(data){

case is a reserved word. When using hashes, always make keys be strings, and you will never get yourself in to trouble

$.get("ajax.php", {"case": caseNr, "picturenr": picNr, "pictureinfo": true}, function(data){
Sign up to request clarification or add additional context in comments.

Comments

2

Your problem is on line 43, karlsten.js, on IE8, so you may want to debug it on IE8, if possible, or get the Web Developer Tools. $.get("ajax.php", {case: caseNr,

But, someone just submitted this before I did, with a good answer. :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.